-
Notifications
You must be signed in to change notification settings - Fork 98
/
tox.ini
104 lines (91 loc) · 2.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[tox]
envlist =
ruff
pylint
py39-sphinx{72,73,74}
py{310,311,312,313}-sphinx{72,73,74,80,81}
mypy
[testenv]
deps =
-r{toxinidir}/requirements_dev.txt
sphinx72: sphinx>=7.2,<7.3
sphinx73: sphinx>=7.3,<7.4
sphinx74: sphinx>=7.4,<7.5
sphinx80: sphinx>=8.0,<8.1
sphinx81: sphinx>=8.1,<8.2
commands =
{envpython} -m tests {posargs}
setenv =
PYTHONDONTWRITEBYTECODE=1
usedevelop = true
[testenv:coverage]
deps =
coverage
{[testenv]deps}
commands =
{envpython} -m coverage run --module tests {posargs}
- {envpython} -m coverage combine
{envpython} -m coverage html
{envpython} -m coverage report
[testenv:{,py310-,py311-,py312-,py313-}develop]
deps =
{[testenv]deps}
git+https://github.com/sphinx-doc/sphinx.git@{env:SPHINX_VER:master}
pip_pre = true
[testenv:{,py38-,py39-,py310-,py311-,py312-,py313-}interactive]
commands =
{envpython} -m sphinxcontrib.confluencebuilder {posargs}
passenv = *
[testenv:{,py38-,py39-,py310-,py311-,py312-,py313-}prerelease]
pip_pre = true
[testenv:{,py38-,py39-,py310-,py311-,py312-,py313-}release]
usedevelop = false
[testenv:doc-html]
changedir = doc
commands = {envpython} -m sphinx -M html . _build -E -a
[testenv:doc-latexpdf]
changedir = doc
commands = {envpython} -m sphinx -M latexpdf . _build -E -a
[testenv:pylint]
deps =
{[testenv]deps}
pylint: pylint==3.3.1
commands =
pylint \
sphinxcontrib \
tests
[testenv:ruff]
deps =
{[testenv]deps}
ruff: ruff==0.6.9
setenv =
{[testenv]setenv}
RUFF_CACHE_DIR={toxworkdir}/.ruff_cache
commands =
ruff \
check \
doc/conf.py \
sphinxcontrib \
tests
[testenv:mypy]
deps =
{[testenv]deps}
-r{toxinidir}/requirements_types.txt
mypy
commands =
mypy \
--explicit-package-bases \
sphinxcontrib
[testenv:{,py38-,py39-,py310-,py311-,py312-,py313-}sandbox]
deps =
-r{toxinidir}/sandbox/requirements.txt
commands =
{envpython} -m tests.test_sandbox {posargs}
passenv = *
[testenv:{,py38-,py39-,py310-,py311-,py312-,py313-}validation]
deps =
{[testenv]deps}
-r{toxinidir}/tests/validation-sets/requirements.txt
commands =
{envpython} -m tests.test_validation {posargs}
passenv = *