reviewstats/tox.ini

45 lines
1.1 KiB
INI

[tox]
minversion = 3.2.0
envlist = py3,pep8,docs
skipsdist = True
# this allows tox to infer the base python from the environment name
# and override any basepython configured in this file
ignore_basepython_conflict=true
[testenv]
usedevelop = True
basepython = python3
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run --slowest {posargs}
[testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands =
coverage erase
{[testenv]commands}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report --show-missing
[flake8]
show-source = True
# E126: from PEP8 upstream, 'most folk agree that its bad'.
# E128: like E126.
# E741 ambiguous variable name 'l'
# W503 line break before binary operator
ignore = E123,E125,E126,E128,E741,W503,H803
builtins = _
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build