-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtox.ini
93 lines (82 loc) · 1.63 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[tox]
envlist = ruff, black, test, coverage, codespell, py3{9,10,11,12,13}
isolated_build = true
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: coverage
3.13: py313
[testenv]
skip_install = false
passenv =
HOME
FSLDIR
FSLOUTPUTTYPE
deps =
pytest
commands =
pytest
[testenv:ruff]
skip_install = true
deps =
ruff>=0.1.0
commands =
ruff check {toxinidir}
[testenv:black]
skip_install = true
deps =
black
commands =
black --check --diff {toxinidir}/junifer {toxinidir}/setup.py
[testenv:test]
skip_install = false
passenv =
HOME
deps =
pytest
commands =
pytest
[testenv:coverage]
skip_install = false
deps =
bctpy==0.6.0
neurokit2>=0.1.7
pytest
pytest-cov
commands =
pytest --cov={envsitepackagesdir}/junifer --cov-report=xml --cov-report=term
[testenv:codespell]
skip_install = true
deps =
codespell
tomli
commands =
codespell --toml {toxinidir}/pyproject.toml {toxinidir}/docs/ {toxinidir}/examples/ {toxinidir}/junifer/ {toxinidir}/tools/ {toxinidir}/README.md
################
# Tool configs #
################
[coverage:paths]
source =
junifer
*/site-packages/junifer
[coverage:run]
branch = true
omit =
*/setup.py
*/_version.py
*/tests/*
*/junifer/configs/*
*/junifer/external/h5io/*
*/junifer/external/BrainPrint/*
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