-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (69 loc) · 1.71 KB
/
pyproject.toml
File metadata and controls
78 lines (69 loc) · 1.71 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
[project]
name = "energy-forecasting"
version = "0.1.0"
description = "Production-grade MLOps pipeline for household energy-consumption forecasting."
requires-python = ">=3.10"
dependencies = [
"fastapi>=0.115",
"uvicorn>=0.34",
"streamlit>=1.44",
"pandas>=2.2",
"numpy>=2.2",
"scikit-learn>=1.6",
"xgboost>=3.0",
"joblib>=1.4",
"mlflow>=2.21",
"dvc>=3.59",
"prefect>=3.3",
"pydantic>=2.11",
"pydantic-settings>=2.9",
"requests>=2.32",
"python-dotenv>=1.1",
"matplotlib>=3.10",
]
[project.optional-dependencies]
dev = [
"ruff>=0.6",
"mypy>=1.10",
"pytest>=8.0",
"pytest-cov>=5.0",
"pre-commit>=3.7",
"pandas-stubs",
"types-requests",
]
# ── Tooling ──────────────────────────────────────────────────────────────────
# pyproject is the source of truth for top-level deps and tooling config.
# requirements.txt is retained for the current Docker build and will be retired
# once the multi-service containerization phase lands.
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
[tool.mypy]
python_version = "3.10"
strict = true
files = ["src"]
mypy_path = "src"
[[tool.mypy.overrides]]
module = [
"pandas.*",
"numpy.*",
"xgboost.*",
"joblib.*",
"mlflow.*",
"sklearn.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = "-q"
[tool.coverage.run]
source = ["src"]
omit = ["*/__pycache__/*"]
[tool.coverage.report]
exclude_also = [
"if __name__ == .__main__.:",
"if track:",
]