; a generative tox configuration, see: https://testrun.org/tox/latest/config.html#generative-envlist [tox] envlist = check, py3, docs [testenv] basepython = {py3,check,docs,spell}: {env:TOXPYTHON:python3} setenv = PYTHONPATH={toxinidir}/tests PYTHONUNBUFFERED=yes passenv = * usedevelop = false deps = pytest pytest-cov pytest-mock -rrequirements.txt commands = {posargs:py.test --cov --cov-report=term-missing -vv tests --cov-report=xml} [testenv:spell] setenv = SPELLCHECK=1 commands = sphinx-build -b spelling docs dist/docs skip_install = true deps = -r{toxinidir}/docs/requirements.txt sphinxcontrib-spelling pyenchant [testenv:docs] deps = -r{toxinidir}/docs/requirements.txt commands = sphinx-build {posargs:-E} -b html docs dist/docs sphinx-build -b linkcheck docs dist/docs [testenv:check] deps = docutils check-manifest flake8 readme-renderer pygments isort black==19.3b0 skip_install = true commands = python setup.py check --strict --metadata --restructuredtext check-manifest {toxinidir} flake8 src tests setup.py isort --verbose --check-only --diff --recursive src tests setup.py black -t py36 --check --verbose src tests setup.py