[tox] minversion = 3.1.0 envlist = docs,pep8 ignore_basepython_conflict = True skipsdist = True [testenv] basepython = python3 usedevelop = True setenv = VIRTUAL_ENV={envdir} install_command = pip install {opts} {packages} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt [testenv:venv] commands = {posargs} [testenv:pep8] commands = doc8 -v doc README.rst [testenv:docs] deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/doc/requirements.txt commands = docstheme-build-translated.sh setenv = SPHINX_WARNINGS_TRANS=1 [doc8] # Settings for doc8: # Ignore build directory ignore-path = doc/build/ # File extensions to use extensions = .rst,.txt