-
Notifications
You must be signed in to change notification settings - Fork 132
/
pyproject.toml
120 lines (99 loc) · 2.6 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
# https://docs.astral.sh/uv/reference/settings/
# https://packaging.python.org/en/latest/guides/writing-pyproject-toml/
# PROJECT
[project]
name = "bikes"
version = "3.0.0"
description = "Predict the number of bikes available."
authors = [{ name = "Médéric HURIER", email = "[email protected]" }]
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"loguru>=0.7.2",
"matplotlib>=3.9.3",
"mlflow>=2.19.0",
"numba>=0.60.0",
"numpy>=2.0.2",
"omegaconf>=2.3.0",
"pandas>=2.2.3",
"pandera>=0.21.0",
"plotly>=5.24.1",
"plyer>=2.1.0",
"psutil>=6.1.0",
"pyarrow>=18.1.0",
"pydantic-settings>=2.6.1",
"pydantic>=2.10.3",
"pynvml>=12.0.0",
"scikit-learn>=1.5.2,<1.6.0",
"setuptools>=75.6.0",
"shap>=0.46.0",
]
license = { file = "LICENSE.txt" }
keywords = ["mlops", "python", "package"]
# LINKS
[project.urls]
Homepage = "https://github.com/fmind/mlops-python-package"
Documentation = "https://fmind.github.io/mlops-python-package/bikes.html"
Repository = "https://github.com/fmind/mlops-python-package"
"Bug Tracker" = "https://github.com/fmind/mlops-python-package/issues"
Changelog = "https://github.com/fmind/mlops-python-package/blob/main/CHANGELOG.md"
# SCRIPTS
[project.scripts]
bikes = 'bikes.scripts:main'
# DEPENDENCIES
[dependency-groups]
checks = [
"bandit>=1.8.0",
"coverage>=7.6.8",
"mypy>=1.13.0",
"pandera[mypy]>=0.21.0",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"pytest-xdist>=3.6.1",
"pytest>=8.3.3",
"ruff>=0.8.1",
]
commits = ["commitizen>=4.0.0", "pre-commit>=4.0.1"]
dev = ["invoke>=2.2.0"]
docs = ["pdoc>=15.0.0"]
notebooks = ["ipykernel>=6.29.5", "nbformat>=5.10.4"]
# TOOLS
[tool.uv]
default-groups = ["checks", "commits", "dev", "docs", "notebooks"]
[tool.bandit]
targets = ["src"]
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "pep621"
changelog_start_rev = "v1.0.0"
update_changelog_on_bump = true
[tool.coverage.run]
branch = true
source = ["src"]
omit = ["__main__.py"]
[tool.mypy]
pretty = true
python_version = "3.12"
check_untyped_defs = true
ignore_missing_imports = true
plugins = ["pandera.mypy", "pydantic.mypy"]
[tool.pytest.ini_options]
addopts = "--verbosity=2"
pythonpath = ["src"]
[tool.ruff]
fix = true
indent-width = 4
line-length = 100
target-version = "py312"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["D100", "D103"]
# SYSTEMS
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"