32 lines
713 B
INI
32 lines
713 B
INI
[tox]
|
|
minversion = 3.1.1
|
|
envlist = docs,pep8,py35,py36,py37,py38
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
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}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = sphinx-build -W -E -b html doc/source doc/build/html
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
# H202 skip until we actually write our own exceptions
|
|
|
|
show-source = True
|
|
ignore = E123,E125,H202,W503
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|