2012-10-26 18:03:25 +01:00
|
|
|
[tox]
|
2015-05-29 13:12:10 +01:00
|
|
|
envlist = py27,py34,flake8
|
2013-09-18 16:55:29 +01:00
|
|
|
minversion = 1.6
|
2015-05-29 13:12:10 +01:00
|
|
|
skipsdist = True
|
2012-11-18 03:02:18 +00:00
|
|
|
|
2012-10-26 18:03:25 +01:00
|
|
|
[testenv]
|
2015-05-29 13:12:10 +01:00
|
|
|
usedevelop = True
|
2013-09-18 16:55:29 +01:00
|
|
|
install_command = pip install {opts} {packages}
|
2013-05-23 23:23:57 +02:00
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
LANG=en_US.UTF-8
|
|
|
|
LANGUAGE=en_US:en
|
|
|
|
LC_ALL=C
|
2013-05-25 13:07:04 +01:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
2013-05-23 23:23:57 +02:00
|
|
|
commands =
|
|
|
|
python setup.py testr --testr-args='{posargs}'
|
|
|
|
|
|
|
|
[tox:jenkins]
|
|
|
|
downloadcache = ~/cache/pip
|
2012-10-26 18:03:25 +01:00
|
|
|
|
2013-06-09 15:06:11 +01:00
|
|
|
[testenv:flake8]
|
|
|
|
commands = flake8
|
|
|
|
|
2012-10-26 18:03:25 +01:00
|
|
|
[testenv:pep8]
|
2013-05-23 23:23:57 +02:00
|
|
|
commands = flake8
|
2012-11-18 03:02:18 +00:00
|
|
|
|
2013-06-09 15:06:11 +01:00
|
|
|
[testenv:pyflakes]
|
|
|
|
commands = flake8
|
|
|
|
|
2013-05-23 23:23:57 +02:00
|
|
|
[testenv:cover]
|
|
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
2012-11-18 03:14:48 +00:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
2013-05-23 23:23:57 +02:00
|
|
|
|
|
|
|
[flake8]
|
2014-07-01 17:10:35 -05:00
|
|
|
# ignored flake8 codes:
|
|
|
|
# H302 import only modules
|
|
|
|
# H402 one line docstring needs punctuation
|
|
|
|
# H404 multi line docstring should start with a summary
|
|
|
|
# H405 multi line docstring summary not separated with an empty line
|
|
|
|
# H904 Wrap long lines in parentheses instead of a backslash
|
|
|
|
# See designate for other ignored codes that may apply here
|
|
|
|
|
2014-07-16 19:24:51 +02:00
|
|
|
ignore = H302,H402,H404,H405,H904
|
2013-06-09 15:06:11 +01:00
|
|
|
builtins = _
|
2013-05-23 23:23:57 +02:00
|
|
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
|