2014-06-23 23:51:13 +09:00
|
|
|
[tox]
|
2021-05-10 16:44:43 +05:30
|
|
|
minversion = 3.18.0
|
2018-04-03 22:32:30 +09:00
|
|
|
envlist = pep8,docs
|
2014-06-23 23:51:13 +09:00
|
|
|
skipsdist = True
|
|
|
|
|
|
|
|
[testenv]
|
2020-04-10 11:48:37 +02:00
|
|
|
basepython = python3
|
2014-06-23 23:51:13 +09:00
|
|
|
usedevelop = True
|
|
|
|
setenv = VIRTUAL_ENV={envdir}
|
2018-04-03 22:32:30 +09:00
|
|
|
deps =
|
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
-r{toxinidir}/doc/requirements.txt
|
2014-06-23 23:51:13 +09:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:docs]
|
2018-04-03 22:32:30 +09:00
|
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
2021-05-10 16:44:43 +05:30
|
|
|
allowlist_externals = rm
|
2018-04-03 22:32:30 +09:00
|
|
|
commands =
|
|
|
|
rm -fr doc/build
|
|
|
|
sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
|
|
|
|
[testenv:pep8]
|
|
|
|
commands =
|
|
|
|
flake8
|
|
|
|
doc8 --ignore D001 specs/ doc/source README.rst
|
|
|
|
|
|
|
|
[flake8]
|
|
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
|
|
|
ignore = E123,E125
|
|
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|