-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
72 lines (64 loc) · 1.22 KB
/
tox.ini
File metadata and controls
72 lines (64 loc) · 1.22 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
[tox]
requires =
tox>=4
env_list =
ruff,
changelog,
coverage,
py3{9,10,11,12,13}
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: coverage
3.13: py313
[testenv]
skip_install = false
passenv =
HOME
deps =
pytest
commands =
pytest
[testenv:ruff]
description = run ruff
skip_install = true
deps =
ruff
commands =
ruff format {toxinidir}/junifer_data
ruff check {toxinidir}/junifer_data
[testenv:changelog]
description = show changelog
skip_install = false
deps =
towncrier
commands =
towncrier build --draft
[testenv:coverage]
skip_install = false
deps =
pytest-cov
commands =
pytest --cov={envsitepackagesdir}/junifer_data --cov-report=xml --cov-report=term {envsitepackagesdir}/junifer_data
[coverage:paths]
source =
junifer_data
*/site-packages/junifer_data
[coverage:run]
branch = true
omit =
*/setup.py
*/_version.py
*/tests/*
parallel = false
[coverage:report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Type checking if statements should not be considered
if TYPE_CHECKING:
# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
precision = 2