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
|
[tox]
envlist=py{38,39,310,311,312,pypy38},docs,linting
isolated_build = true
[testenv]
usedevelop=true
setenv =
PYTHONWARNDEFAULTENCODING = 1
deps=
pytest
pytest-timeout
passenv = GITHUB_ACTIONS, HOME, USER, XDG_*
commands=
python -m pytest {posargs:testing}
[testenv:docs]
skipsdist = True
usedevelop = True
changedir = doc
deps =
sphinx
PyYAML
commands =
sphinx-build -W -b html . _build
[testenv:linting]
skip_install = True
deps = pre-commit>=1.11.0
commands = pre-commit run --all-files --show-diff-on-failure
[pytest]
timeout = 20
addopts = -ra
testpaths = testing
|