[tox] minversion = 2.0 envlist = pep8,docs skipsdist = True [testenv] usedevelop = True setenv = VIRTUAL_ENV={envdir} install_command = pip install -U {opts} {packages} deps = -r{toxinidir}/test-requirements.txt -r{toxinidir}/doc/requirements.txt [testenv:venv] basepython = python3 commands = {posargs} [testenv:docs] basepython = python3 deps = -r{toxinidir}/doc/requirements.txt whitelist_externals = rm commands = rm -fr doc/build sphinx-build -W -b html doc/source doc/build/html [testenv:pep8] basepython = python3 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