Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
196 lines (153 loc) · 3.61 KB
/
Copy pathpyproject.toml
File metadata and controls
196 lines (153 loc) · 3.61 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[project]
requires-python = ">=3.11"
name = "kedro_mlops"
readme = "README.md"
dynamic = ["version",]
dependencies = [
"kedro>=0.19.12",
"kedro-datasets[json,polars]>=6.0.0",
"matplotlib>=3.10.1",
"mlflow-skinny>=2.21.3",
"pandas[aws]>=2.2.3",
"polars-ds>=0.8.3",
"polars[fsspec,pandas]>=1.27.1",
"scikit-learn>=1.6.1",
"seaborn>=0.13.2",
"xgboost-cpu>=3.0.0",
]
[project.scripts]
kedro-mlops = "kedro_mlops.__main__:main"
[tool.kedro]
package_name = "kedro_mlops"
project_name = "kedro-mlops"
kedro_init_version = "1.1.1"
tools = [ "Linting", "Testing", "Data Structure", "Kedro Viz",]
example_pipeline = "False"
source_dir = "src"
[project.entry-points."kedro.hooks"]
[tool.ruff]
line-length = 88
show-fixes = true
[tool.ruff.lint]
ignore = [ "E501",]
# select = [ "F", "W", "E", "I", "UP", "PL", "T201",]
# By default, ruff only uses all "E" (pycodestyle) and "F" (pyflakes) rules.
# Here we append to the defaults.
extend-select = [
# pycodestyle
"W",
# mccabe
#"C90",
# isort
"I",
# pep-naming
#"N",
# pydocstyle
"D101",
"D106",
"D2",
"D3",
"D402",
"D403",
"D412",
"D419",
# pyupgrade
"UP",
# flake8-2020
"YTT",
# flake8-annotations
#"ANN",
# flake8-bandit
#"S",
# flake8-blind-except
#"BLE",
# flake8-boolean-trap
#"FBT",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# flake8-datetimez
"DTZ",
# flake8-errmsg
#"EM",
# flake8-import-conventions
"ICN",
# flake8-logging-format
#"G",
# flake8-pie
"PIE",
# flake8-pyi
"PYI",
# flake8-quotes
"Q",
# flake8-self
"SLF",
# flake8-simplify
"SIM",
# flake8-tidy-imports
"TID",
# flake8-type-checking
"TCH",
# flake8-unused-arguments
"ARG",
# pandas-vet
"PD",
# pylint
"PLE",
"PLR",
"PLW",
# NumPy-specific rules
"NPY",
# ruff specific ones:
"RUF",
]
extend-ignore = [
# 1 blank line required between summary line and description
"D205",
# Too many arguments to function call
"PLR0913",
# Magic number
"PLR2004",
# Pandas
"PD901",
]
[tool.ruff.lint.per-file-ignores]
"src/kedro_mlops/library/mlflow/schemas.py" = ["D101", "D106"]
"src/tests/*" = ["SLF001", "ARG001"]
[tool.ruff.lint.pydocstyle]
# Enforce google-style docstrings. This is equivalent to ignoring a large number of pydocstyle (D)
# rules incompatible with google-style docstrings. See:
# https://google.github.io/styleguide/pyguide.html#383-functions-and-methods
convention = "google"
[tool.pytest.ini_options]
addopts = "--cov-report term-missing --cov src/kedro_mlops -ra"
[tool.coverage.report]
fail_under = 90
show_missing = true
exclude_lines = [ "pragma: no cover", "raise NotImplementedError",]
[tool.coverage.run]
omit = [
# small wrappers around well-tested classes and methods
"src/kedro_mlops/library/preprocessing/nodes.py",
"src/kedro_mlops/library/evaluation/nodes.py",
# plotting methods and custom MLFlow evaluators
"src/kedro_mlops/library/evaluation/mlflow_evaluator.py",
# Pydantic classes with no logic
"src/kedro_mlops/library/mlflow/schemas.py",
# kedro project template code, mostly generated by cookiecutter
"src/kedro_mlops/pipelines/*",
"src/kedro_mlops/__main__.py",
"src/kedro_mlops/pipeline_registry.py",
"src/kedro_mlops/settings.py",
]
[dependency-groups]
dev = [
"mlflow>=2.21.3",
"pytest>=8.3.5",
"pytest-cov>=6.1.1",
"pytest-env>=1.1.5",
"pytest-mock>=3.14.0",
]