cinder-specs/tox.ini
tushargite96 2d21f45ebd Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 python in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I003623b16d045635af3d83e886ee9c2db46056ea
2021-03-17 12:40:57 +05:30

36 lines
699 B
INI

[tox]
minversion = 3.18.0
envlist = docs,pep8
skipsdist = True
ignore_basepython_conflict = True
[testenv]
basepython = python3
usedevelop = True
setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt
[testenv:docs]
allowlist_externals = rm
commands =
rm -fr doc/build
sphinx-build -W -b html doc/source doc/build/html
doc8 --ignore D001 doc/source
whereto doc/source/_extra/.htaccess doc/test/redirect-tests.txt
[testenv:pep8]
commands =
flake8
doc8 --ignore D001 specs/
[testenv:venv]
commands = {posargs}
[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