[tox] envlist = py26,py27,pep8,pyflakes [testenv] setenv = VIRTUAL_ENV={envdir} NOSE_WITH_OPENSTACK=1 NOSE_OPENSTACK_COLOR=1 NOSE_OPENSTACK_RED=0.05 NOSE_OPENSTACK_YELLOW=0.025 NOSE_OPENSTACK_SHOW_ELAPSED=1 deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt [testenv:pep8] deps = pep8==1.3.3 commands = pep8 --repeat --show-source muranorepository setup.py [testenv:pyflakes] deps = flake8 commands = flake8 [testenv:venv] commands = {posargs} [testenv:cover] commands = nosetests --cover-erase --cover-package=muranorepository --with-xcoverage [tox:jenkins] downloadcache = ~/cache/pip [flake8] # H301 one import per line # H302 import only modules # H201 no 'except:' at least use 'except Exception:' ignore = H301,H302,F403,H201 show-source = true builtins = _ exclude=.build,.venv,.git,.tox,dist,doc,*/openstack,*lib/python*,*egg,tools