-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
51 lines (44 loc) · 1.03 KB
/
tox.ini
File metadata and controls
51 lines (44 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Tox reference:
# https://tox.wiki/en/stable/user_guide.html
# https://tox.wiki/en/stable/config.html
[tox]
requires =
tox>=4
env_list = type, py{310}
[testenv]
description = run unit tests
deps =
pytest~=7.4
pytest-sugar~=0.9
pytest-asyncio~=0.23
mypy~=1.7
types-requests~=2.31
sphinx~=7.2.6
myst-parser~=2.0.0
sphinx-autodoc2~=0.5.0
pydata-sphinx-theme~=0.14.4
sphinx-autodoc-typehints~=1.25.2
build~=1.0.3
types-toml~=0.10.2
setenv =
PYTHONPATH=src:tests
commands =
pytest --tb=short -vv {posargs}
# https://docs.pytest.org/en/7.1.x/how-to/output.html
[testenv:type]
description = run type checks
commands =
mypy --strict --namespace-packages src tests
[testenv:dev]
description = run development commands
commands =
mypy --strict --namespace-packages src tests
{posargs}
[testenv:doc]
description = build the documentation
commands =
sphinx-build -M html doc/src/ doc/build/
[testenv:build]
description = build the distribution archive into the dist folder
commands =
python3 -m build