2014-09-23 14:08:21 +00:00
|
|
|
[tox]
|
2020-12-20 15:40:40 +00:00
|
|
|
envlist =
|
2022-06-01 21:44:36 +00:00
|
|
|
py3{11,10,9,8,7}
|
2022-03-23 20:56:16 +00:00
|
|
|
pypy3{9,8,7}
|
2021-03-24 22:11:28 +00:00
|
|
|
lint
|
2020-12-20 15:40:40 +00:00
|
|
|
docs
|
|
|
|
|
|
|
|
skip_missing_interpreters = true
|
2022-12-04 02:32:49 +00:00
|
|
|
isolated_build = true
|
2014-09-23 14:08:21 +00:00
|
|
|
|
|
|
|
[testenv]
|
2022-12-04 02:32:49 +00:00
|
|
|
deps = -r dev-deps/test.txt
|
2022-12-24 14:52:35 +00:00
|
|
|
passenv =
|
|
|
|
PYTEST_ADDOPTS
|
2022-12-27 01:13:48 +00:00
|
|
|
# https://docs.pytest.org/en/7.1.x/reference/reference.html#envvar-FORCE_COLOR
|
2022-12-24 14:52:35 +00:00
|
|
|
FORCE_COLOR
|
2022-12-27 01:13:48 +00:00
|
|
|
# https://hypothesis.readthedocs.io/en/latest/settings.html#hypothesis.settings.print_blob
|
|
|
|
# https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
|
|
|
|
CI
|
2022-12-10 18:55:47 +00:00
|
|
|
allowlist_externals = ./run_tests.py
|
2020-12-20 15:40:40 +00:00
|
|
|
commands = ./run_tests.py
|
|
|
|
|
2021-03-24 22:11:28 +00:00
|
|
|
[testenv:lint]
|
2022-12-04 02:32:49 +00:00
|
|
|
deps = -r dev-deps/lint.txt
|
2020-12-20 15:40:40 +00:00
|
|
|
skip_install = true
|
2022-11-02 23:14:42 +00:00
|
|
|
commands = pre-commit run --all-files --verbose --show-diff-on-failure
|
2020-12-20 15:40:40 +00:00
|
|
|
|
|
|
|
[testenv:docs]
|
2022-12-04 02:32:49 +00:00
|
|
|
deps = -r dev-deps/docs.txt
|
2022-02-14 23:34:20 +00:00
|
|
|
commands = sphinx-build -W --keep-going -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
|