Debian Codegraph @

tox.ini

raw
1 [tox]
2 download = true
3 envlist =
4 py3{15,14,13,12,11}
5 pypy3.11
6 # Do not include the following so they only run when explicitly requested:
7 # benchmark
8 # coverage
9 # docs
10 # lint
11
12 skip_missing_interpreters = true
13 # https://hynek.me/articles/turbo-charge-tox/
14 package = wheel
15 wheel_build_env = .pkg
16
17 [testenv]
18 runner = uv-venv-lock-runner
19 passenv =
20 # https://docs.pytest.org/en/stable/example/simple.html
21 PYTEST_ADDOPTS
22 # https://docs.pytest.org/en/7.1.x/reference/reference.html#envvar-FORCE_COLOR
23 FORCE_COLOR
24 # https://hypothesis.readthedocs.io/en/latest/settings.html#hypothesis.settings.print_blob
25 # https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
26 CI
27 allowlist_externals = bash
28 commands =
29 ty check
30 pytest
31
32 [testenv:benchmark]
33 commands = pytest -c /dev/null -n0 --benchmark-autosave microbenchmarks.py
34
35 [testenv:coverage]
36 commands =
37 coverage run -m pytest
38 coverage combine
39 coverage report
40
41 [testenv:docs]
42 dependency_groups = docs
43 commands = sphinx-build -TWn --keep-going -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
44
45 [testenv:lint]
46 deps =
47 skip_install = true
48 allowlist_externals = prek
49 commands = prek --all-files --verbose --show-diff-on-failure