-
Notifications
You must be signed in to change notification settings - Fork 341
Expand file tree
/
Copy pathtox.ini
More file actions
145 lines (107 loc) · 2.02 KB
/
tox.ini
File metadata and controls
145 lines (107 loc) · 2.02 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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[tox]
envlist =
py39
py310
py311-sklearn150
py311-sklearn160
py311-sklearn170
py312-pandas230
py312-pandas300
py313
py314
codecov
docs
stylechecks
typechecks
skipsdist = true
[testenv]
envdir = {toxworkdir}/unit_tests
install_command = pip install {opts} {packages}
setenv =
PYTHONPATH = .
COVERAGE_RCFILE = {envtmpdir}/coveragerc
commands =
pytest tests
# -------------------------
# Python versions
# -------------------------
[testenv:py39]
deps =
.[tests]
[testenv:py310]
deps =
.[tests]
[testenv:py313]
deps =
.[tests]
[testenv:py314]
deps =
.[tests]
# -------------------------
# scikit-learn matrix
# -------------------------
[testenv:py311-sklearn150]
deps =
.[tests]
scikit-learn==1.5.1
[testenv:py311-sklearn160]
deps =
.[tests]
scikit-learn==1.6.1
[testenv:py311-sklearn170]
deps =
.[tests]
scikit-learn==1.7.1
[testenv:py312-pandas230]
deps =
.[tests]
pandas==2.3.0
[testenv:py312-pandas300]
deps =
.[tests]
pandas==3.0.0
# -------------------------
# Coverage
# -------------------------
[testenv:codecov]
deps =
.[tests]
commands_pre =
{envpython} -c 'from pathlib import Path; Path(r"{env:COVERAGE_RCFILE}").write_text(Path(".coveragerc").read_text())'
commands =
coverage run -m pytest -v
coverage report
# -------------------------
# Docs
# -------------------------
[testenv:docs]
deps =
.[docs]
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
# -------------------------
# Linting & typing
# -------------------------
[testenv:stylechecks]
deps =
flake8
commands =
{posargs:flake8 feature_engine tests}
[testenv:typechecks]
deps =
mypy
commands =
{posargs:mypy feature_engine}
# -------------------------
# flake8 configuration
# -------------------------
[flake8]
exclude =
.git
env
# Match Black
max-line-length = 88
profile = black
line_length = 88
lines_between_sections = 1
known_first_party = sentry