565b195415
This patch bumps the minimum version of tox to 3.18.0 [1]. Additionally fix the argument such as "whitelist_externals" which is deprecated, it replaces whitelist_externals by allowlist_externals option [1]. [1] https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23 Change-Id: I80b180a433636d1ac70546535f1d3762f828cb13
34 lines
666 B
INI
34 lines
666 B
INI
[tox]
|
|
minversion = 3.18.0
|
|
envlist = pep8,docs
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/doc/requirements.txt
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
allowlist_externals = rm
|
|
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
|