-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathtox.ini
58 lines (50 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
# Policy:
#
# Always support at least two major versions of Python and Sphinx: The latest,
# and the one just before that. For the latest major version of Sphinx, test
# against the latest three minor versions. For older major versions, test
# against the latest minor version until maintenance becomes a burden, then drop
# them.
[tox]
envlist = {py38,py39,py310,py311,py312}-{sphinx34,sphinx33,sphinx32,sphinx24,sphinx18}
minversion = 2.7.0
[testenv]
deps =
sphinx34: Sphinx >= 3.4.0, < 3.5.0
sphinx33: Sphinx >= 3.3.0, < 3.4.0
sphinx32: Sphinx >= 3.2.0, < 3.3.0
sphinx24: Sphinx >= 2.4.0, < 3.0.0
sphinx18: Sphinx >= 1.8.0, < 1.9.0
commands =
python setup.py test
[testenv:flake8]
deps =
flake8 >= 3.5.0, < 4.0.0
flake8-import-order-spoqa >= 1.3.0, < 2.0.0
commands =
flake8 sphinxcontrib/
[flake8]
exclude = build, dist, doc, .tox
import-order-style = spoqa
application-import-names = sphinxcontrib.autoprogram
max-line-length = 88
[testenv:doc]
basepython = python3
deps = -rdoc/rtd-requires.txt
commands =
python3 setup.py build_sphinx --build-dir=doc/_build
[testenv:black]
deps =
black
commands =
black --check --diff sphinxcontrib
[testenv:mypy]
deps =
mypy
commands =
mypy sphinxcontrib
[testenv:pylint]
deps =
pylint
commands =
pylint sphinxcontrib