-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
54 lines (49 loc) · 1.17 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
[tox]
requires =
tox>=4
env_list =
py{39,310,311,312,313}
lint
type
docstring
coverage
[testenv]
description = run the tests with pytest
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run pytest {posargs:tests}
[testenv:lint]
description = run linter
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands = poetry run ruff check {posargs:.}
[testenv:type]
description = run type checks
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run mypy {posargs:. --strict}
[testenv:docstring]
description = run docstring coverage checks
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run interrogate --ignore-init-module --ignore-init-method --fail-under=100 {posargs:.}
[testenv:coverage]
description = run coverage report
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run coverage run --source=depthviz -m pytest {posargs:.}
poetry run coverage xml -o coverage.xml --fail-under=100