forked from sphinx-contrib/confluencebuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
94 lines (83 loc) · 1.99 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
[tox]
envlist =
ruff
pylint
py38-sphinx{62,70,71}
py{39,310,311,312}-sphinx{62,70,71,72,73}
[testenv]
deps =
-r{toxinidir}/requirements_dev.txt
sphinx62: sphinx>=6.2,<6.3
sphinx70: sphinx>=7.0,<7.1
sphinx71: sphinx>=7.1,<7.2
sphinx72: sphinx>=7.2,<7.3
sphinx73: sphinx>=7.3,<7.4
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:{,py38-,py39-,py310-,py311-,py312-,py313-}develop]
deps =
git+https://github.com/sphinx-doc/sphinx.git@{env:SPHINX_VER:master}
-r{toxinidir}/requirements_dev.txt
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:pylint]
deps =
{[testenv]deps}
pylint
commands =
pylint \
sphinxcontrib \
tests
[testenv:ruff]
deps =
{[testenv]deps}
ruff: ruff==0.3.4
setenv =
{[testenv]setenv}
RUFF_CACHE_DIR={toxworkdir}/.ruff_cache
commands =
ruff \
check \
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 = *