@@ -11,16 +11,10 @@ requires = [
11
11
" versioningit" ,
12
12
]
13
13
14
- [tool .versioningit .vcs ]
15
- method = " git"
16
- default-tag = " 0.0.0"
17
-
18
14
[project ]
19
15
name = " mlflow-cratedb"
20
16
description = " MLflow adapter for CrateDB"
21
17
readme = " README.md"
22
- requires-python = " >=3.8,<3.12"
23
- license = {text = " Apache License 2.0" }
24
18
keywords = [
25
19
" ai" ,
26
20
" cratedb" ,
@@ -32,9 +26,11 @@ keywords = [
32
26
" mlflow-tracking" ,
33
27
" mlops" ,
34
28
]
29
+ license = { text = " Apache License 2.0" }
35
30
authors = [
36
- {
name =
" Andreas Motl" ,
email =
" [email protected] " },
31
+ {
name =
" Andreas Motl" ,
email =
" [email protected] " },
37
32
]
33
+ requires-python = " >=3.8,<3.12"
38
34
classifiers = [
39
35
" Development Status :: 4 - Beta" ,
40
36
" Environment :: Console" ,
@@ -84,51 +80,75 @@ dependencies = [
84
80
" sqlparse<0.6" ,
85
81
]
86
82
87
- [project .optional-dependencies ]
88
- develop = [
89
- " black<25" ,
83
+ optional-dependencies.develop = [
90
84
" mypy<1.15" ,
91
85
" poethepoet<1" ,
92
86
" pyproject-fmt<2.6" ,
93
- " ruff<0.9 " ,
87
+ " ruff<0.10 " ,
94
88
" validate-pyproject<0.24" ,
95
89
]
96
- examples = [
97
- ' pycaret[analysis,models,parallel,test,tuner]==3.3.2; platform_machine != " aarch64" ' ,
90
+ optional-dependencies. examples = [
91
+ " pycaret[analysis,models,parallel,test,tuner]==3.3.2; platform_machine!=' aarch64' " ,
98
92
" salesforce-merlion<2.1" ,
99
93
" werkzeug==2.2.3" ,
100
94
]
101
- release = [
95
+ optional-dependencies. release = [
102
96
" build<2" ,
103
97
" twine<7" ,
104
98
]
105
- test = [
99
+ optional-dependencies. test = [
106
100
" psutil==5.9.8" ,
107
101
" pytest<9" ,
108
102
" pytest-cov<7" ,
109
103
]
110
- [project .scripts ]
111
- mlflow-cratedb = " mlflow_cratedb.cli:cli"
112
- [project .entry-points ."mlflow .app" ]
113
- mlflow-cratedb = " mlflow_cratedb.server:app"
104
+ urls.changelog = " https://github.com/crate/mlflow-cratedb/blob/main/CHANGES.md"
105
+ urls.documentation = " https://github.com/crate/mlflow-cratedb"
106
+ urls.homepage = " https://github.com/crate/mlflow-cratedb"
107
+ urls.repository = " https://github.com/crate/mlflow-cratedb"
108
+ scripts.mlflow-cratedb = " mlflow_cratedb.cli:cli"
109
+ entry-points."mlflow.app".mlflow-cratedb = " mlflow_cratedb.server:app"
110
+
114
111
[tool .setuptools ]
115
112
# https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
116
- packages = [" mlflow_cratedb" ]
117
-
118
- [project .urls ]
119
- changelog = " https://github.com/crate/mlflow-cratedb/blob/main/CHANGES.md"
120
- documentation = " https://github.com/crate/mlflow-cratedb"
121
- homepage = " https://github.com/crate/mlflow-cratedb"
122
- repository = " https://github.com/crate/mlflow-cratedb"
123
- [tool .black ]
113
+ packages = [ " mlflow_cratedb" ]
114
+
115
+ [tool .ruff ]
124
116
line-length = 120
125
117
126
- extend-exclude = " tests/test_tracking.py"
118
+ extend-exclude = [
119
+ " tests/test_tracking.py" ,
120
+ ]
121
+
122
+ lint.select = [
123
+ # Builtins
124
+ " A" ,
125
+ # Bugbear
126
+ " B" ,
127
+ # comprehensions
128
+ " C4" ,
129
+ # Pycodestyle
130
+ " E" ,
131
+ # eradicate
132
+ " ERA" ,
133
+ # Pyflakes
134
+ " F" ,
135
+ # isort
136
+ " I" ,
137
+ # pandas-vet
138
+ " PD" ,
139
+ # return
140
+ " RET" ,
141
+ # Bandit
142
+ " S" ,
143
+ # print
144
+ " T20" ,
145
+ " W" ,
146
+ # flake8-2020
147
+ " YTT" ,
148
+ ]
127
149
128
- [tool .isort ]
129
- profile = " black"
130
- skip_glob = " **/site-packages/**"
131
- skip_gitignore = false
150
+ lint.per-file-ignores."tests/*" = [ " S101" ] # Use of `assert` detected
151
+ lint.per-file-ignores."tests/conftest.py" = [ " E402" ] # Module level import not at top of file
132
152
133
153
[tool .pytest .ini_options ]
134
154
minversion = " 2.0"
@@ -139,7 +159,7 @@ addopts = """
139
159
"""
140
160
log_level = " DEBUG"
141
161
log_cli_level = " DEBUG"
142
- testpaths = [" tests" ]
162
+ testpaths = [ " tests" ]
143
163
xfail_strict = true
144
164
markers = [
145
165
" examples" ,
@@ -149,17 +169,17 @@ markers = [
149
169
150
170
[tool .coverage .run ]
151
171
branch = false
152
- source = [" mlflow_cratedb" ]
172
+ source = [ " mlflow_cratedb" ]
153
173
omit = [
154
- " tests/*" ,
174
+ " tests/*" ,
155
175
]
156
176
157
177
[tool .coverage .report ]
158
178
fail_under = 0
159
179
show_missing = true
160
180
161
181
[tool .mypy ]
162
- packages = [" mlflow_cratedb" ]
182
+ packages = [ " mlflow_cratedb" ]
163
183
exclude = [
164
184
]
165
185
check_untyped_defs = true
@@ -173,62 +193,26 @@ strict_equality = true
173
193
warn_unused_ignores = true
174
194
warn_redundant_casts = true
175
195
176
- [tool .ruff ]
177
- line-length = 120
178
-
179
- lint.select = [
180
- # Bandit
181
- " S" ,
182
- # Bugbear
183
- " B" ,
184
- # Builtins
185
- " A" ,
186
- # comprehensions
187
- " C4" ,
188
- # eradicate
189
- " ERA" ,
190
- # flake8-2020
191
- " YTT" ,
192
- # isort
193
- " I" ,
194
- # pandas-vet
195
- " PD" ,
196
- # print
197
- " T20" ,
198
- # Pycodestyle
199
- " E" ,
200
- " W" ,
201
- # Pyflakes
202
- " F" ,
203
- # return
204
- " RET" ,
205
- ]
206
-
207
- extend-exclude = [
208
- ]
209
-
210
-
211
- [tool .ruff .lint .per-file-ignores ]
212
- "tests/*" = [" S101" ] # Use of `assert` detected
213
- "tests/conftest.py" = [" E402" ] # Module level import not at top of file
214
-
196
+ [tool .versioningit .vcs ]
197
+ method = " git"
198
+ default-tag = " 0.0.0"
215
199
216
200
# ===================
217
201
# Tasks configuration
218
202
# ===================
219
203
220
204
[tool .poe .tasks ]
221
205
format = [
222
- { cmd = " black ." },
206
+ { cmd = " ruff format ." },
223
207
# Configure Ruff not to auto-fix (remove!):
224
208
# Ignore unused imports (F401), unused variables (F841), `print` statements (T201), and commented-out code (ERA001).
225
- { cmd = " ruff --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 --ignore=ERA001 ." },
209
+ { cmd = " ruff check --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 --ignore=ERA001 ." },
226
210
{ cmd = " pyproject-fmt --keep-full-version pyproject.toml" },
227
211
]
228
212
229
213
lint = [
214
+ { cmd = " ruff format --check ." },
230
215
{ cmd = " ruff check ." },
231
- { cmd = " black --check ." },
232
216
{ cmd = " validate-pyproject pyproject.toml" },
233
217
{ cmd = " mypy" },
234
218
]
@@ -239,8 +223,8 @@ test-fast = [
239
223
{ cmd = " pytest -m 'not slow'" },
240
224
]
241
225
build = { cmd = " python -m build" }
242
- check = [" lint" , " test" ]
243
- check-fast = [" lint" , " test-fast" ]
226
+ check = [ " lint" , " test" ]
227
+ check-fast = [ " lint" , " test-fast" ]
244
228
245
229
release = [
246
230
{ cmd = " python -m build" },
0 commit comments