Skip to content

Commit 5c459d2

Browse files
authored
[minor] sort tox testenvs to ease finding one (#14904)
As the number grows starts to need search and wondering at what place to add a new one. Making sorted makes the order obvious
1 parent c5ddc36 commit 5c459d2

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

tox.ini

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ envlist =
66
py38,
77
py39,
88
py310,
9+
docs,
910
lint,
1011
type,
11-
docs,
1212
isolated_build = true
1313

1414
[testenv]
@@ -21,6 +21,23 @@ passenv =
2121
deps = -rtest-requirements.txt
2222
commands = python -m pytest {posargs}
2323

24+
[testenv:dev]
25+
description = generate a DEV environment, that has all project libraries
26+
usedevelop = True
27+
deps =
28+
-rtest-requirements.txt
29+
-rdocs/requirements-docs.txt
30+
commands =
31+
python -m pip list --format=columns
32+
python -c 'import sys; print(sys.executable)'
33+
34+
[testenv:docs]
35+
description = invoke sphinx-build to build the HTML docs
36+
deps = -rdocs/requirements-docs.txt
37+
commands =
38+
sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
39+
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
40+
2441
[testenv:lint]
2542
description = check the code style
2643
commands =
@@ -37,20 +54,3 @@ passenv =
3754
commands =
3855
python -m mypy --config-file mypy_self_check.ini -p mypy -p mypyc
3956
python -m mypy --config-file mypy_self_check.ini misc --exclude misc/fix_annotate.py --exclude misc/async_matrix.py --exclude misc/sync-typeshed.py
40-
41-
[testenv:docs]
42-
description = invoke sphinx-build to build the HTML docs
43-
deps = -rdocs/requirements-docs.txt
44-
commands =
45-
sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
46-
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
47-
48-
[testenv:dev]
49-
description = generate a DEV environment, that has all project libraries
50-
usedevelop = True
51-
deps =
52-
-rtest-requirements.txt
53-
-rdocs/requirements-docs.txt
54-
commands =
55-
python -m pip list --format=columns
56-
python -c 'import sys; print(sys.executable)'

0 commit comments

Comments
 (0)