-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (114 loc) · 3.17 KB
/
pyproject.toml
File metadata and controls
126 lines (114 loc) · 3.17 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sarima-bayes"
version = "2.4.0"
description = "Bayesian TPE optimization framework for time series forecasting"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.9"
dependencies = [
"numpy>=1.24",
"pandas>=2.0",
"statsmodels>=0.14",
"optuna>=3.4",
"openpyxl>=3.1",
"joblib>=1.3",
"statsforecast>=1.7",
"click>=8",
"pydantic>=2",
"PyYAML>=6",
]
[project.scripts]
boa-forecaster = "boa_forecaster.cli:cli"
[project.optional-dependencies]
notebooks = [
"matplotlib>=3.7",
"jupyter>=1.0",
"ipykernel>=6.0",
]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"pytest-benchmark>=4.0",
"black>=23.0",
"ruff>=0.1",
"hypothesis>=6.0",
"mypy>=1.8",
"bandit>=1.7",
]
sklearn = [
"scikit-learn>=1.3",
]
xgboost = [
"xgboost>=2.0",
]
lightgbm = [
"lightgbm>=4.0",
]
prophet = [
"prophet>=1.1",
]
deep = [
"torch>=2.1",
]
ml = [
"scikit-learn>=1.3",
"xgboost>=2.0",
"lightgbm>=4.0",
]
all = [
"scikit-learn>=1.3",
"xgboost>=2.0",
"lightgbm>=4.0",
"prophet>=1.1",
"matplotlib>=3.7",
"jupyter>=1.0",
"ipykernel>=6.0",
]
[tool.setuptools.packages.find]
where = ["src"]
[tool.black]
line-length = 88
target-version = ["py39", "py310", "py311"]
[tool.ruff]
line-length = 88
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP"]
ignore = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["src"]
[tool.ruff.lint.per-file-ignores]
"notebooks/*.ipynb" = ["E402"]
# Pydantic v2 evaluates model-field annotations at runtime. On Python 3.9
# PEP 604 `X | None` raises TypeError, so this file must use typing.Optional /
# typing.Union despite the project-wide UP preference.
"src/boa_forecaster/config_schema.py" = ["UP007", "UP045"]
[tool.pytest.ini_options]
markers = [
"slow: marks tests that call external ML libraries and take longer to run (deselect with '-m not slow')",
"requires_sklearn: tests that need scikit-learn installed",
"requires_xgboost: tests that need xgboost installed",
"requires_lightgbm: tests that need lightgbm installed",
"requires_prophet: tests that need prophet installed",
"requires_torch: tests that need torch installed",
"integration: multi-model end-to-end tests",
"perf: performance regression benchmarks (pytest-benchmark); skipped unless explicitly run",
]
[tool.mypy]
# Targets the lowest supported Python version so CI catches 3.9-incompatible
# typing (e.g. accidental PEP 604 `X | Y` in value position, missing
# `from __future__ import annotations`).
python_version = "3.9"
# Optional third-party deps (optuna, statsmodels, sklearn, xgboost, lightgbm,
# statsforecast, joblib) ship no or partial stubs — silencing them keeps the
# signal focused on our own src/ code.
ignore_missing_imports = true
[[tool.mypy.overrides]]
# torch ships py.typed but its internals use match/case (Python 3.10+),
# which mypy rejects when targeting python_version = "3.9". Skip analysis
# of torch's own source files entirely — they are not our code.
module = ["torch", "torch.*"]
follow_imports = "skip"