|
1 | 1 | [tox] |
2 | | -envlist = docs, flake8, isort, validate-pyproject |
| 2 | +envlist = |
| 3 | + validate |
| 4 | + linting |
3 | 5 |
|
4 | | -[testenv:validate-pyproject] |
| 6 | + |
| 7 | +[testenv:validate] |
5 | 8 | skip_install = true |
6 | 9 | deps = |
7 | | - validate-pyproject==0.24.1 |
8 | | - packaging==25.0 |
| 10 | + validate-pyproject==0.24.1 |
| 11 | + packaging==25.0 |
9 | 12 | commands = |
10 | | - validate-pyproject ./pyproject.toml |
| 13 | + validate-pyproject ./pyproject.toml |
| 14 | + |
11 | 15 |
|
12 | 16 | [testenv:docs] |
13 | 17 | skip_install = true |
14 | 18 | deps = |
15 | | - -r {toxinidir}/docs/requirements.txt |
16 | | - -r {toxinidir}/requirements.txt |
| 19 | + -r {toxinidir}/docs/requirements.txt |
| 20 | + -r {toxinidir}/requirements.txt |
17 | 21 | 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} |
24 | 28 | setenv = |
25 | 29 | PYTHONPATH = {toxinidir}/. |
26 | 30 |
|
| 31 | + |
27 | 32 | [testenv:mypy] |
28 | 33 | skip_install = true |
29 | 34 | 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 | + |
36 | 43 |
|
37 | 44 | [testenv:linting] |
38 | 45 | skip_install = true |
39 | 46 | deps = |
40 | | - ruff==0.11.12 |
| 47 | + ruff==0.11.12 |
41 | 48 | 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