-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
49 lines (43 loc) · 1014 Bytes
/
tox.ini
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
[tox]
isolated_build = true
envlist = py{39,310,311,312,313},lint,docs,isort
[testenv]
allowlist_externals =
poetry
commands_pre=
poetry install -n -v --no-root
commands =
poetry run pytest {posargs}
[testenv:lint]
commands=
poetry run black --check --diff src/ tests/
poetry run flake8 src/ tests/
[testenv:isort]
commands=
poetry run isort --check-only --diff src/ tests/
[testenv:docs]
commands_pre=pip install .
deps=
-rdocs/requirements.txt
commands=
sphinx-build -W -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" \
--color -bhtml
python -c 'import pathlib; print("documentation available under " \
+ (pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html").as_uri())'
[coverage:run]
branch=True
omit=*/quacks/mypy.py
[coverage:report]
fail_under=100
exclude_lines=
pragma: no cover
raise NotImplementedError
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312, lint, isort, docs
3.13: py313
[flake8]
ignore = E701, E704