[tox] minversion = 2.7 envlist = docs,pep8 skipsdist = True [testenv] basepython = python3 usedevelop = True setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt [testenv:venv] commands = {posargs} [testenv:docs] commands = sphinx-build -W -b html doc/source doc/build/html [testenv:pep8] description = Runs set of linters against codebase (checkniceness) commands = {[testenv:checkniceness]commands} [testenv:checkniceness] description = Validates (pep-like) documenation skip_install = True usedevelop = False commands = doc8 --file-encoding utf-8 {toxinidir}/doc [testenv:spelling] deps = -r{toxinidir}/requirements.txt sphinxcontrib-spelling PyEnchant commands = sphinx-build -b spelling doc/source doc/build/spelling