38 lines
752 B
INI
38 lines
752 B
INI
[tox]
|
|
minversion = 3.1.1
|
|
envlist = docs,pep8,py36
|
|
skipsdist = True
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
whitelist_externals = find
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
stestr run --slowest {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
whitelist_externals =
|
|
find
|
|
rm
|
|
commands =
|
|
rm -rf doc/build/html doc/build/doctrees
|
|
find . -type f -name "*.pyc" -delete
|
|
sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
[testenv:pep8]
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
flake8 {posargs}
|
|
|
|
[flake8]
|
|
ignore = E128
|
|
exclude = .venv,.git,.tox,doc,.eggs
|