Skip to content

Commit 0b19300

Browse files
authored
[py] Cleanup tox config (#15833)
1 parent 36bd191 commit 0b19300

File tree

1 file changed

+29
-22
lines changed

1 file changed

+29
-22
lines changed

py/tox.ini

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,50 @@
11
[tox]
2-
envlist = docs, flake8, isort, validate-pyproject
2+
envlist =
3+
validate
4+
linting
35

4-
[testenv:validate-pyproject]
6+
7+
[testenv:validate]
58
skip_install = true
69
deps =
7-
validate-pyproject==0.24.1
8-
packaging==25.0
10+
validate-pyproject==0.24.1
11+
packaging==25.0
912
commands =
10-
validate-pyproject ./pyproject.toml
13+
validate-pyproject ./pyproject.toml
14+
1115

1216
[testenv:docs]
1317
skip_install = true
1418
deps =
15-
-r {toxinidir}/docs/requirements.txt
16-
-r {toxinidir}/requirements.txt
19+
-r {toxinidir}/docs/requirements.txt
20+
-r {toxinidir}/requirements.txt
1721
commands =
18-
; generate `docs/source/api.rst` with module listing
19-
{envpython} ./generate_api_module_listing.py
20-
; regenerate autodoc stub pages
21-
sphinx-autogen docs/source/api.rst
22-
; build api docs
23-
sphinx-build -b html -d ../build/docs/doctrees docs/source ../build/docs/api/py {posargs}
22+
# generate `docs/source/api.rst` with module listing
23+
{envpython} ./generate_api_module_listing.py
24+
# regenerate autodoc stub pages
25+
sphinx-autogen docs/source/api.rst
26+
# build api docs
27+
sphinx-build -b html -d ../build/docs/doctrees docs/source ../build/docs/api/py {posargs}
2428
setenv =
2529
PYTHONPATH = {toxinidir}/.
2630

31+
2732
[testenv:mypy]
2833
skip_install = true
2934
deps =
30-
mypy==1.15.0
31-
lxml==5.3.2
32-
types-urllib3==1.26.25
33-
types-certifi==2021.10.8.3
34-
trio-typing==0.10.0
35-
commands = mypy --install-types {posargs}
35+
mypy==1.15.0
36+
lxml==5.3.2
37+
types-urllib3==1.26.25
38+
types-certifi==2021.10.8.3
39+
trio-typing==0.10.0
40+
commands =
41+
mypy --install-types {posargs}
42+
3643

3744
[testenv:linting]
3845
skip_install = true
3946
deps =
40-
ruff==0.11.12
47+
ruff==0.11.12
4148
commands =
42-
ruff check --fix --show-fixes --exit-non-zero-on-fix .
43-
ruff format --exit-non-zero-on-format .
49+
ruff check --fix --show-fixes --exit-non-zero-on-fix .
50+
ruff format --exit-non-zero-on-format .

0 commit comments

Comments
 (0)