-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
38 lines (33 loc) · 725 Bytes
/
Copy pathtox.ini
File metadata and controls
38 lines (33 loc) · 725 Bytes
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
[tox]
requires =
tox>=4
env_list = lint, type, 3.12
[testenv]
description = run unit tests
deps =
pytest>=8
pytest-sugar
commands =
pytest {posargs:tests}
[testenv:lint]
description = run linters
skip_install = true
deps =
black
commands = black {posargs:.}
; [testenv:type]
; description = run type checks
; deps =
; mypy
; commands =
; mypy {posargs:src tests}
[testenv:docs]
description = build documentation
basepython = python3.12
deps =
sphinx>=4
myst-parser
sphinx_rtd_theme
commands =
sphinx-build -d "{envtmpdir}{/}doctree" docs "{toxworkdir}{/}docs_out" --color -b html
python -c 'print(r"documentation available under file://{toxworkdir}{/}docs_out{/}index.html")'