-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
47 lines (41 loc) · 890 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
[tox]
isolated_build = true
envlist = py310, py311, pre-commit, mypy, build
[gh-actions]
python =
3.10: py310, pre-commit, mypy, build
3.11: py311
[testenv]
allowlist_externals =
poetry
passenv = *
commands =
poetry install --only test
poetry run pytest --cov=drebedengi --cov-branch --cov-report=xml --cov-report=term-missing tests
[testenv:pre-commit]
allowlist_externals =
poetry
commands =
poetry run pre-commit run --all-files
[testenv:docs]
allowlist_externals =
poetry
skip_install = true
commands =
poetry install --only docs
poetry run mkdocs build
poetry run mkdocs serve
[testenv:mypy]
allowlist_externals =
poetry
skip_install = true
commands =
poetry install --only mypy
poetry run mypy src tests
[testenv:build]
deps =
allowlist_externals =
poetry
commands =
poetry build
poetry run twine check dist/*