36 lines
1004 B
INI
Raw Normal View History

2014-01-30 10:57:14 +01:00
[tox]
minversion = 1.6
envlist = py26,py27,py33,py34,pep8
2014-01-30 10:57:14 +01:00
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
2014-02-10 10:55:11 +01:00
usedevelop = True
install_command = pip install --allow-all-external --allow-insecure netaddr -U {opts} {packages}
2014-01-30 10:57:14 +01:00
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
2014-01-30 10:57:14 +01:00
[tox:jenkins]
downloadcache = ~/cache/pip
[testenv:pep8]
2014-02-10 10:55:11 +01:00
commands =
flake8 {posargs}
2014-01-30 10:57:14 +01:00
[testenv:cover]
2014-02-10 10:55:11 +01:00
setenv = VIRTUAL_ENV={envdir}
commands = python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$'
2014-01-30 10:57:14 +01:00
[testenv:venv]
commands = {posargs}
[flake8]
2014-02-10 10:55:11 +01:00
# TODO(dmllr): Analyze or fix the warnings blacklisted below
# H301 one import per line
# H404 multi line docstring should start with a summary
# H405 multi line docstring summary not separated with an empty line
ignore = H301,H404,H405
2014-02-10 10:55:11 +01:00
builtins = _
exclude = .venv,.git,.tox,dist,doc,etc,*glance_store/locale*,*openstack/common*,*lib/python*,*egg,build