-
Notifications
You must be signed in to change notification settings - Fork 15
/
tox.ini
65 lines (58 loc) · 1.39 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
[tox]
minversion = 4.16.0
envlist =
py3{9, 10, 11, 12}
linters
[base]
python = python3
skip_install = true
package = frouros
venv = {toxinidir}/.venv
[gh-actions]
python =
3.9: py39, linters
3.10: py310, linters
3.11: py311, linters
3.12: py312, linters
[testenv]
# Force to upgrade pip/wheel/setuptools to the latest version
download = True
deps =
pytest>=8.3.1,<8.4
pytest-cov>=5.0.0,<5.1
pytest-mock>=3.14.0,<3.15
scikit-learn>=1.5.1,<1.6
commands = pytest --cov={[base]package} \
--cov-report term \
--cov-report=xml \
--cov-fail-under=90
[pytest]
addopts = -ra -q
norecursedirs = docs
[testenv:ruff]
basepython = {[base]python}
skip_install = {[base]skip_install}
deps =
ruff>=0.5.6,<0.6
commands = ruff check --config pyproject.toml .
ruff format --config pyproject.toml .
[testenv:mypy]
basepython = {[base]python}
skip_install = {[base]skip_install}
deps =
mypy>=1.11.0,<1.12
types-requests>=2.32.0,<2.33
types-toml>=0.10.0,<0.11
types-tqdm>=4.66,<4.67
commands = mypy --config-file pyproject.toml .
[testenv:linters]
basepython = {[base]python}
skip_install = {[base]skip_install}
setenv =
PYTHONPATH = $PYTHONPATH:{toxinidir}:{[base]venv}/lib/{[base]python}/site-packages
deps =
{[testenv:ruff]deps}
{[testenv:mypy]deps}
commands =
{[testenv:ruff]commands}
{[testenv:mypy]commands}