1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
[tox]
envlist = python
minversion = 3.5.3
[testenv]
deps =
setuptools>=31.0.1
whitelist_externals =
rm
bash
test
commands =
rm -rf .eggs/
bash -c "if [[ '{env:CIRCLECI:disabled}' == 'disabled' ]]; then pytest --testmon-off {posargs}; fi"
bash -c "if [[ '{env:CIRCLECI:disabled}' != 'disabled' ]]; then circleci tests glob **/test/**.py | circleci tests split --split-by=timings | grep -v '__init__.py' | xargs pytest --testmon-off {posargs}; fi"
codecov -f coverage.xml -X gcov
usedevelop = True
extras = testing
passenv =
WEBTEST_INTERACTIVE
CI
TRAVIS
TRAVIS_*
APPVEYOR
APPVEYOR_*
CIRCLECI
CIRCLE_*
PYTHONDONTWRITEBYTECODE
setenv =
PYTHONDONTWRITEBYTECODE=x
WEBTEST_INTERACTIVE=false
[testenv:build-docs]
extras =
docs
testing
changedir = docs
commands =
python -m sphinx . {toxinidir}/build/html
[testenv:watch]
commands = ptw --runner=pytest
[testenv:pre-commit]
deps =
{[testenv]deps}
pre-commit
commands = pre-commit run --all-files {posargs}
[testenv:pre-commit-failing]
deps =
{[testenv:pre-commit]deps}
commands = pre-commit run --config .pre-commit-config.yaml.failing --all-files {posargs}
[testenv:setup-check]
deps =
twine
extras =
docs
usedevelop = False
commands =
python -m setup checkdocs check --metadata --restructuredtext --strict --verbose
twine check .tox/dist/*
|