swiftsync/tox.ini
Chmouel Boudjnah d72c24a184 Add .gitreview file
- Fix the target to pep8 instead of flake8 to get tests passing.
- Exclude H803 pep8 check.
- Correct pep8 error.

Change-Id: I90c7abafb6a23e46ff8b0210ff49e37d79730948
2013-11-15 14:56:09 +01:00

34 lines
817 B
INI

[tox]
envlist = py27,pep8
[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
NOSE_OPENSTACK_STDOUT=1
deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
commands = python setup.py testr --testr-args="{posargs}"
[testenv:pep8]
sitepackages = False
commands = flake8 --show-source swsync bin setup.py tests
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py testr --coverage
[tox:jenkins]
downloadcache = ~/cache/pip
[flake8]
ignore = E12,E711,E721,E712,H302,H303,H403,H404,H803
builtins = _
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,plugins,tools