-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
51 lines (44 loc) · 1.19 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
; SPDX-FileCopyrightText: 2023 Veit Schiele
; SPDX-License-Identifier: BSD-3-Clause
[tox]
min_version = 4
envlist =
pre-commit
docs
py3{8,9,10,11,12}
coverage-report
isolated_build = True
skip_missing_interpreters = True
[testenv]
extras =
tests: tests
deps =
tests: coverage[toml]
commands =
coverage run -m pytest {posargs}
[testenv:coverage-report]
description = Report coverage over all test runs.
deps = coverage[toml]
skip_install = true
commands =
coverage combine
coverage report
[testenv:pre-commit]
description = Run all pre-commit hooks.
deps = pre-commit
skip_install = true
commands = pre-commit run --all-files
[testenv:docs]
# Keep base_python in sync with ci.yml and .readthedocs.yaml.
base_python = py312
deps = interrogate
# skip_install = true
extras = docs
commands =
sphinx-build -n -T -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -n -T -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
interrogate --quiet --fail-under 100 src tests
[testenv:docs-linkcheck]
base_python = {[testenv:docs]base_python}
extras = {[testenv:docs]extras}
commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees docs docs/_build/html