-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
60 lines (51 loc) · 1.24 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
[tox]
isolated_build = true
envlist = py{39,310,311,312,313},lint,docs,mypy,isort,slots
[testenv]
allowlist_externals =
poetry
commands_pre=
poetry install -n -v --no-root
commands =
poetry run pytest
[testenv:py311]
commands=
poetry run pytest --cov=slotscheck --cov-report=xml {posargs}
[testenv:lint]
commands=
poetry run black --check --diff src/ tests/src
poetry run flake8 src/ tests/src
[testenv:isort]
commands=
poetry run isort --check-only --diff src/ tests/src
[testenv:mypy]
commands=
poetry run mypy --pretty --show-error-codes src tests/src
[testenv:slots]
commands=
poetry run slotscheck -m slotscheck --verbose
[testenv:docs]
basepython=python3.11
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=**/__main__.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, docs, lint, isort, slots
3.12: py312, mypy
3.13: py313