-
Notifications
You must be signed in to change notification settings - Fork 19
/
tox.ini
112 lines (100 loc) · 2.07 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[tox]
envlist = ruff, black, test, coverage, codespell, py3{8,9,10,11}, nodeps
isolated_build = true
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: coverage
3.11: py311, nodeps
[testenv]
skip_install = false
deps =
pytest
seaborn
scikit-optimize>=0.10.0,<0.11
optuna>=3.6.0,<3.7
optuna_integration>=3.6.0,<4.1
commands =
pytest {toxinidir}/julearn
[testenv:ruff]
skip_install = true
deps =
ruff
commands =
ruff check {toxinidir}
[testenv:black]
skip_install = true
deps =
black
commands =
black --check --diff {toxinidir}/julearn {toxinidir}/setup.py
[testenv:test]
skip_install = false
deps =
pytest
seaborn
deslib
panel>=1.0.0b1
bokeh>=3.0.0
param
scikit-optimize>=0.10.0,<0.11
optuna>=3.6.0,<3.7
optuna_integration>=3.6.0,<4.1
commands =
pytest -vv {toxinidir}/julearn
[testenv:nodeps]
skip_install = false
deps =
pytest
seaborn
commands =
pytest -vv --filter=nodeps {toxinidir}/julearn
[testenv:coverage]
skip_install = false
deps =
pytest
pytest-cov
seaborn
deslib
panel>=1.0.0b1
bokeh>=3.0.0
param
scikit-optimize>=0.10.0,<0.11
optuna>=3.6.0,<3.7
optuna_integration>=3.6.0,<4.1
commands =
pytest --cov={envsitepackagesdir}/julearn --cov=./julearn --cov-report=xml --cov-report=term -vv
[testenv:codespell]
skip_install = true
deps =
codespell
tomli
commands =
codespell --toml {toxinidir}/pyproject.toml {toxinidir}/docs/ {toxinidir}/examples/ {toxinidir}/julearn/ {toxinidir}/README.md
################
# Tool configs #
################
[coverage:paths]
source =
julearn
*/site-packages/julearn
[coverage:run]
branch = true
omit =
*/setup.py
*/_version.py
*/tests/*
*/utils/typing.py
*/viz/*
*/external/*
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