[tox] minversion = 4.6.0 envlist = docs,pep8,py3 skipsdist = True [testenv] usedevelop = True setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt allowlist_externals = find rm commands = find . -type f -name "*.pyc" -delete stestr run --slowest {posargs} [testenv:venv] commands = {posargs} [testenv:docs] deps= -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/doc/requirements.txt 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] skip_install = true deps = {[testenv:docs]deps} commands = flake8 {posargs} [flake8] ignore = E128 exclude = .venv,.git,.tox,doc,.eggs