@@ -6,9 +6,9 @@ envlist =
6
6
py38,
7
7
py39,
8
8
py310,
9
+ docs,
9
10
lint,
10
11
type,
11
- docs,
12
12
isolated_build = true
13
13
14
14
[testenv]
@@ -21,6 +21,23 @@ passenv =
21
21
deps = -rtest-requirements.txt
22
22
commands = python -m pytest {posargs}
23
23
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
+
24
41
[testenv:lint]
25
42
description = check the code style
26
43
commands =
@@ -37,20 +54,3 @@ passenv =
37
54
commands =
38
55
python -m mypy --config-file mypy_self_check.ini -p mypy -p mypyc
39
56
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