forked from readthedocs/sphinx-autoapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
63 lines (56 loc) · 1.05 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
[tox]
isolated_build = true
envlist =
# Keep this in sync with .github/workflows/main.yml
py{38,39,310,311,312}
formatting
typecheck
lint
docs
release_notes
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311, formatting, typecheck, lint, docs, release_notes
3.12: py312
[testenv]
deps =
beautifulsoup4
pytest
commands =
pytest {posargs}
[testenv:formatting]
basepython = python3
skip_install = true
deps =
black
commands =
black --check --diff autoapi tests
[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:docs]
extras =
docs
deps =
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
[testenv:release_notes]
deps =
towncrier
importlib-resources<6 # pinned due to https://github.com/twisted/towncrier/issues/528
commands =
towncrier {posargs:check}