1[tox] 2envlist = 3 py{37,36,35,34,27,py3,py3,py} 4 stylecheck 5 docs-html 6 coverage-report 7skip_missing_interpreters = true 8 9[testenv] 10setenv = 11 COVERAGE_FILE = .coverage.{envname} 12deps = 13 pytest-cov 14commands = pytest --tb=short --cov --cov-report= {posargs} 15 16[testenv:stylecheck] 17deps = pre-commit 18skip_install = true 19commands = pre-commit run --all-files --show-diff-on-failure 20 21[testenv:docs-html] 22deps = -r docs/requirements.txt 23commands = sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html 24 25[testenv:coverage-report] 26setenv = 27 COVERAGE_FILE = .coverage 28deps = coverage 29skip_install = true 30commands = 31 coverage combine 32 coverage html 33 coverage report 34 35[testenv:codecov] 36passenv = CI TRAVIS TRAVIS_* 37setenv = 38 COVERAGE_FILE = .coverage 39deps = codecov 40skip_install = true 41commands = 42 coverage combine 43 codecov 44 coverage report 45