-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
149 lines (132 loc) · 3.82 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
# === Project =====================================================================================
[project]
name = "mlOpus"
version = "1.0.7"
readme = "README.md"
license = { text = "Apache-2.0" }
description = "MLOps tools for research and development."
authors = [{name = "Lariel Fernandes", email = "[email protected]"}]
classifiers = [
"Environment :: Console",
"Operating System :: Unix",
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"Intended Audience :: Information Technology",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: Apache Software License",
]
requires-python = ">=3.10,<4"
dependencies = [
"pytz >=2024",
"dacite ~=1.5",
"pyyaml >=5,<7",
"urllib3 ~=2.2",
"pydantic ~=2.8",
"packaging >=22",
"rclone-python ~=0.1",
"importlib-metadata >=6.8",
]
[project.urls]
Repository = "https://github.com/lariel-fernandes/mlopus"
[project.optional-dependencies]
kedro = ["kedro ~=0.19"]
search = ["mongomock ~=4.1"]
mlflow = ["mlflow-skinny ~=2.9"]
[project.entry-points."mlopus.mlflow_api_providers"]
mlflow = "mlopus.mlflow.providers.mlflow:MlflowApi[mlflow]"
generic = "mlopus.mlflow.providers.generic:GenericMlflowApi"
# === UV ==========================================================================================
[tool.uv]
dev-dependencies = [
"annoy ~=1.17",
"numpy ~=2.1",
"pandas ~=2.2",
"pytest ~=7.2",
"jupyter ~=1.0",
"tzlocal ~=5.2",
"devtools ~=0.12",
"pytest-mock ~=3.14",
"pytest-coverage ~=0.0",
"sphinx <7",
"sphinx-toolbox ~=3.8",
"autodoc-pydantic ~=2.2",
"sphinx-rtd-theme ~=2.0",
"sphinx-paramlinks ~=0.6",
"enum-tools[sphinx] ~=0.12",
"sphinx-code-include ~=1.4",
"sphinx-autodoc-typehints ~=1.23",
]
# === Commitizen ==================================================================================
[tool.commitizen]
version = "1.0.7"
tag_format = "$version"
version_scheme = "semver"
version_files = [
"pyproject.toml:^version",
"docs/api/conf.py:^release",
"src/mlopus/__init__.py:^VERSION",
]
changelog_merge_prerelease = true
allowed_prefixes = []
# === Pytest ======================================================================================
[tool.pytest.ini_options]
filterwarnings = [
"ignore::DeprecationWarning",
]
log_cli_level = "DEBUG" # to show logs and prints, run pytest with: -s
addopts = "--cov mlopus --cov-report term --cov-report html"
[tool.coverage.report]
omit = ["src/mlopus/mlflow/providers/generic.py"]
# === Ruff ========================================================================================
[tool.ruff]
line-length = 120
indent-width = 4
extend-include = []
exclude = [
"examples/",
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"jupyter_lab_config.py",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
exclude = ["src/tests/*"]
fixable = ["ALL"]
unfixable = []
select = [
"F", # Pyflakes
# "D", # pydocstyle
"E", # Errors
"W", # Warning
"TCH", # Typecheck
"TID",
"SIM",
]
ignore = ["E501"]