
Change-Id: I49d26c3a9772c409b038b06e8256fb5823169c50 Implements: blueprint update-hacking
49 lines
1.2 KiB
INI
49 lines
1.2 KiB
INI
[tox]
|
|
envlist = py26,py27,flake8
|
|
minversion = 1.6
|
|
|
|
[testenv]
|
|
sitepackages = False
|
|
install_command = pip install {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
LC_ALL=C
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
python setup.py testr --testr-args='{posargs}'
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv:flake8]
|
|
commands = flake8
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:pyflakes]
|
|
commands = flake8
|
|
|
|
[testenv:cover]
|
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
# ignored flake8 codes:
|
|
# H104 file contains nothing more than comments
|
|
# H302 import only modules
|
|
# H401 docstring should not start with a space
|
|
# 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
|
|
|
|
ignore = H104,H302,H401,H402,H404,H405,H904
|
|
builtins = _
|
|
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools
|