1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
[tox]
minversion = 3.1.0
envlist = py3,pep8
ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
deps =
-r{toxinidir}/test-requirements.txt
.[sphinx]
commands =
stestr run --slowest --suppress-attachments {posargs}
[testenv:pep8]
deps = {[testenv]deps}
hacking >= 3.1.0,<3.2.0
commands =
flake8
reno -q lint
[testenv:venv]
commands = {posargs}
[testenv:cover]
setenv =
{[testenv]setenv}
PYTHON=coverage run --source reno --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:docs]
commands = sphinx-build -a -W -E -b html doc/source doc/build/html
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
# E741 ambiguous variable name 'l'
# W503 line break before binary operator
show-source = True
ignore = E123,E125,E741,W503
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|