[tox] minversion = 1.6 envlist = coala, docs, docs-linkcheck, license, py2, py3 [testenv] deps = -r{toxinidir}/requirements.txt pytest pytest-click pytest-datafiles commands = pytest [testenv:coala] basepython = python3 deps = coala coala-bears nodeenv==1.1.2 commands = nodeenv -p npm install --global remark-cli remark-lint write-good python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger coala --non-interactive [testenv:docs] deps = -rdocs-requirements.txt commands = sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html echo "Generated docs available in {toxinidir}/docs/_build/html" whitelist_externals = echo [testenv:docs-linkcheck] deps = -rdocs-requirements.txt commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck [testenv:license] deps = lftools commands = lftools license check-dir lftools lftools license check-dir -r '.+' shell