-
Notifications
You must be signed in to change notification settings - Fork 135
/
tox.ini
64 lines (57 loc) · 1000 Bytes
/
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
[tox]
isolated_build = true
envlist =
# Keep this in sync with .github/workflows/main.yml
py{38,39,310,311,312,313}
format
typecheck
lint
doc
release_notes
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312, format, typecheck, lint, doc, release_notes
3.13: py313
[testenv]
usedevelop = True
deps =
beautifulsoup4
pytest
commands =
pytest {posargs}
[testenv:format]
skip_install = true
deps =
ruff
commands =
ruff format --check --diff
[testenv:lint]
skip_install = true
deps =
ruff
commands =
ruff check {posargs:autoapi}
[testenv:typecheck]
deps =
mypy
types-docutils
types-PyYAML
commands =
mypy {posargs:autoapi}
[testenv:doc]
deps =
furo
sphinx
sphinx_design
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:release_notes]
deps =
towncrier
commands =
towncrier {posargs:check}