e3dd94d65c
According to https://docs.python.org/3/howto/pyporting.html the syntax changed in Python 3.x. The new syntax is usable with Python >= 2.6 and should be preferred to be compatible with Python3. Enabled hacking check H231. Change-Id: Ide60f971493440311f1dcc594e33d536beb925e5
33 lines
681 B
INI
33 lines
681 B
INI
[tox]
|
|
envlist = pep8, py27
|
|
|
|
[testenv]
|
|
# Set STATSD env variables so that statsd code paths are tested.
|
|
setenv = STATSD_HOST=localhost
|
|
STATSD_PORT=8125
|
|
VIRTUAL_ENV={envdir}
|
|
install_command = pip install {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 nodepool
|
|
|
|
[testenv:cover]
|
|
commands =
|
|
python setup.py testr --coverage
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
ignore = E123,E125,H
|
|
select = H231
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,build,*.egg
|