-
Notifications
You must be signed in to change notification settings - Fork 18
/
tox.ini
95 lines (79 loc) · 2.22 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
[tox]
# isolated_build = True
envlist = black-check, isort-check, py3.8, py3.9, py3.10, py3.11, py3.12
# vulture, flake8, pylint,
[tox:.package]
# note tox will use the same python version as under what tox is installed to package
# so unless this is python 3 you can require a given python version for the packaging
# environment via the basepython key
basepython = python3
[testenv]
setenv =
PYTHONPATH = {toxinidir}
deps =
pytest
pytest-cov
pytest-randomly
; Other test dependencies
; ...
; mistletoe>=0.7.2,<0.8.0
; mesa>=0.8.9,<0.9.0
; to include the "dadapy" folder: --doctest-modules dadapy tests/
commands =
pytest --basetemp={envtmpdir} --doctest-modules tests/ \
--cov=dadapy \
--ignore=dadapy/plot \
--cov-report=xml \
--cov-report=html \
--cov-report=term
[testenv:py3.8]
basepython = python3.8
[testenv:py3.9]
basepython = python3.9
[testenv:py3.10]
basepython = python3.10
[testenv:py3.11]
basepython = python3.11
[testenv:py3.12]
basepython = python3.12
[testenv:black]
skip_install = True
deps = black==23.3.0
commands = black dadapy tests
[testenv:black-check]
skip_install = True
deps = black==23.3.0
commands = black dadapy tests --check --verbose
[testenv:isort]
skip_install = True
deps = isort>=5.10.0,<5.11
commands = isort dadapy tests
[testenv:isort-check]
skip_install = True
deps = isort
commands = isort --check-only dadapy tests
[testenv:flake8]
skip_install = True
deps =
flake8
flake8-bugbear
flake8-docstrings
flake8-eradicate
flake8-isort
pydocstyle
commands =
flake8 dadapy/base.py dadapy/metric_comparisons.py dadapy/clustering.py dadapy/id_estimation.py dadapy/density_estimation.py dadapy/data.py tests
[testenv:py3.8-nb]
basepython = python3.8
deps =
pytest>=7.4.0,<7.5.0
nbmake>=1.4,<1.5
commands:
pytest examples/notebook_on_intrinsicdim_densityest_clustering.ipynb examples/notebook_on_information_imbalance.ipynb --nbmake --nbmake-timeout=300
[testenv:py3.12-nb]
basepython = python3.12
deps =
pytest>=7.4.0,<7.5.0
nbmake>=1.4,<1.5
commands:
pytest examples/notebook_on_intrinsicdim_densityest_clustering.ipynb examples/notebook_on_information_imbalance.ipynb --nbmake --nbmake-timeout=300