-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
45 lines (41 loc) · 868 Bytes
/
tox.ini
File metadata and controls
45 lines (41 loc) · 868 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
39
40
41
42
43
44
45
[tox]
env_list =
check
py3-coverage
[gh-actions]
python =
3.12: check, py312
[testenv]
basepython =
py312: python3.12
{check,docs}: python3
setenv =
PYTHONUNBUFFERED = yes
PYTEST_EXTRA_ARGS = -s
coverage: PYTEST_EXTRA_ARGS = --cov
passenv =
*
extras =
test
commands =
mypy src tests
pytest {env:PYTEST_MARKERS:} {env:PYTEST_EXTRA_ARGS:} {posargs:-vv}
[testenv:check]
description = perform style checks
deps =
build
pre-commit
skip_install = true
commands =
pre-commit install
pre-commit run --all-files --show-diff-on-failure
python -m build
[testenv:docs]
description = build HTML docs
setenv =
READTHEDOCS_PROJECT = desalkila
READTHEDOCS_VERSION = latest
extras =
doc
commands =
sphinx-build -d "{toxworkdir}/docs_doctree" docs/source "{toxworkdir}/docs_out" --color -vW -bhtml