-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathtox.ini
More file actions
101 lines (84 loc) · 1.81 KB
/
tox.ini
File metadata and controls
101 lines (84 loc) · 1.81 KB
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
[tox]
envlist =
checks
py3{7,8,9,10,11,12,13}
isolated_build = True
skip_missing_interpreters = True
[gh-actions]
python =
# setuptools >=62 needs Python >=3.7
3.7: py37,checks
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
description = Run test suite for {basepython}
skip_install = true
allowlist_externals = make
commands = pytest {posargs:}
deps =
pytest
pytest-cov
setuptools>=62.0
setuptools-scm
setenv =
PIP_DISABLE_PIP_VERSION_CHECK = 1
downloads = true
[testenv:mypy]
description = Check code style
basepython = python3
deps = mypy
commands = mypy {posargs:src}
[testenv:docstrings]
description = Check for PEP257 compatible docstrings
basepython = python3
deps = docformatter
commands =
docformatter --check --diff {posargs:src}
[testenv:checks]
description = Run code style checks
basepython = python3
deps =
ruff
commands =
ruff check
[testenv:docs]
description = Build HTML documentation
basepython = python3
deps = -r{toxinidir}/docs/requirements.txt
skip_install = true
allowlist_externals =
make
echo
uvx
commands =
uvx make -C docs html
commands_post =
echo "Find the HTML documentation at file://{toxinidir}/docs/_build/html/index.html"
[testenv:man]
description = Build the manpage
basepython = python3
deps = sphinx
skip_install = true
commands = make -C docs man
[testenv:prepare-dist]
description = Prepare for TestPyPI
basepython = python3
deps =
twine
build
commands =
# Same as python3 -m build
pyproject-build
twine check dist/*
[testenv:changelog]
description = Run towncrier to check, build, or create the CHANGELOG.rst
basepython = python3
skip_install = true
deps =
git+https://github.com/twisted/towncrier.git
commands =
towncrier {posargs:build --draft}