forked from fmind/mlops-python-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
112 lines (89 loc) · 2.2 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
# https://python-poetry.org/docs/pyproject/
# PROJECT
[tool.poetry]
name = "bikes"
version = "1.0.1"
description = "Predict the number of bikes available."
repository = "https://github.com/fmind/mlops-python-package"
documentation = "https://fmind.github.io/mlops-python-package/"
authors = ["Médéric HURIER <[email protected]>"]
readme = "README.md"
license = "CC BY"
keywords = ["mlops", "python", "package"]
packages = [{ include = "bikes", from = "src" }]
# SCRIPTS
[tool.poetry.scripts]
bikes = 'bikes.scripts:main'
# DEPENDENCIES
[tool.poetry.dependencies]
python = "^3.12"
loguru = "^0.7.2"
matplotlib = "^3.9.0"
mlflow = "^2.14.1"
numpy = "^1.26.4"
omegaconf = "^2.3.0"
pandas = "^2.2.2"
pandera = "^0.20.1"
plotly = "^5.22.0"
pyarrow = "^15.0.2"
pydantic = "^2.7.4"
pydantic-settings = "^2.3.4"
scikit-learn = "^1.5.0"
[tool.poetry.group.checks.dependencies]
bandit = "^1.7.9"
coverage = "^7.5.4"
mypy = "^1.10.1"
pytest = "^8.2.2"
pytest-cov = "^5.0.0"
pytest-xdist = "^3.6.1"
pandera = { extras = ["mypy"], version = "^0.20.1" }
ruff = "^0.5.0"
[tool.poetry.group.commits.dependencies]
commitizen = "^3.27.0"
pre-commit = "^3.7.1"
[tool.poetry.group.dev.dependencies]
invoke = "^2.2.0"
[tool.poetry.group.docs.dependencies]
pdoc = "^14.5.1"
[tool.poetry.group.notebooks.dependencies]
ipykernel = "^6.29.4"
nbformat = "^5.10.4"
# CONFIGURATIONS
[tool.bandit]
targets = ["src"]
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "poetry"
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
strict = 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 = ["poetry-core"]
build-backend = "poetry.core.masonry.api"