-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathtox.ini
61 lines (49 loc) · 1.3 KB
/
tox.ini
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
[tox]
envlist =
coverage_erase
# When updating Python versions, use search-and-replace
# against the entire list of of versions
# to ensure consistency throughout this file.
py{3.13, 3.12, 3.11, 3.10}
coverage_report
docs
pyright
[testenv]
runner = uv-venv-lock-runner
with_dev = true
extras =
standard
package = wheel
wheel_build_env = build_wheel
depends =
py{3.13, 3.12, 3.11, 3.10}: coverage_erase
commands = coverage run -m pytest {posargs}
[testenv:coverage_erase]
skip_install = true
commands = coverage erase
[testenv:coverage_report]
skip_install = true
depends =
py{3.13, 3.12, 3.11, 3.10}
commands_pre =
# Ignore the exit code of `coverage combine`
# (in case the reports are already combined).
- coverage combine
commands =
coverage report --show-missing
[testenv:coverage_report-ci]
# Inherit everything from the `coverage_report` environment,
# but generate an XML report and ignore exit codes.
base = coverage_report
commands =
- coverage xml --fail-under=0
- coverage report --show-missing
[testenv:docs]
base_python = py3.10
skip_install = true
commands = mkdocs build --strict
[testenv:pyright]
# When the Python version is updated here,
# update the version used in the CI `Typecheck` job, too.
base_python = py3.10
commands = pyright