Skip to content

Commit

Permalink
[minor] sort tox testenvs to ease finding one (#14904)
Browse files Browse the repository at this point in the history
As the number grows starts to need search and wondering at what place to
add a new one. Making sorted makes the order obvious
  • Loading branch information
yarikoptic committed Mar 25, 2023
1 parent c5ddc36 commit 5c459d2
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ envlist =
py38,
py39,
py310,
docs,
lint,
type,
docs,
isolated_build = true

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

[testenv:dev]
description = generate a DEV environment, that has all project libraries
usedevelop = True
deps =
-rtest-requirements.txt
-rdocs/requirements-docs.txt
commands =
python -m pip list --format=columns
python -c 'import sys; print(sys.executable)'

[testenv:docs]
description = invoke sphinx-build to build the HTML docs
deps = -rdocs/requirements-docs.txt
commands =
sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'

[testenv:lint]
description = check the code style
commands =
Expand All @@ -37,20 +54,3 @@ passenv =
commands =
python -m mypy --config-file mypy_self_check.ini -p mypy -p mypyc
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

[testenv:docs]
description = invoke sphinx-build to build the HTML docs
deps = -rdocs/requirements-docs.txt
commands =
sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -W -bhtml {posargs}
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'

[testenv:dev]
description = generate a DEV environment, that has all project libraries
usedevelop = True
deps =
-rtest-requirements.txt
-rdocs/requirements-docs.txt
commands =
python -m pip list --format=columns
python -c 'import sys; print(sys.executable)'

0 comments on commit 5c459d2

Please sign in to comment.