You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.0 KiB
51 lines
1.0 KiB
[tox] |
|
min_version = 3.1 |
|
envlist = py3,py27,pep8 |
|
skipsdist = True |
|
ignore_basepython_conflict=true |
|
|
|
[testenv] |
|
usedevelop = True |
|
basepython = python3 |
|
install_command = pip install -U {opts} {packages} |
|
setenv = VIRTUAL_ENV={envdir} |
|
deps = |
|
-r{toxinidir}/requirements.txt |
|
-r{toxinidir}/test-requirements.txt |
|
commands = |
|
stestr run {posargs} |
|
stestr slowest |
|
|
|
[testenv:pep8] |
|
basepython = python3 |
|
deps = |
|
hacking>=3.2.0,<3.3 |
|
commands = flake8 |
|
|
|
[testenv:venv] |
|
commands = {posargs} |
|
|
|
[testenv:cover] |
|
setenv = |
|
{[testenv]setenv} |
|
PYTHON=coverage run --source bindep --parallel-mode |
|
commands = |
|
stestr run {posargs} |
|
coverage combine |
|
coverage html -d cover |
|
coverage xml -o cover/coverage.xml |
|
|
|
[testenv:docs] |
|
deps = |
|
-r{toxinidir}/requirements.txt |
|
-r{toxinidir}/doc/requirements.txt |
|
commands = |
|
sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html |
|
|
|
[flake8] |
|
# E123, E125 skipped as they are invalid PEP-8. |
|
|
|
show-source = True |
|
ignore = E123,E125,E129,H,W503,W504 |
|
builtins = _ |
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
|
|