Adds ruff as a dev dependency with an explicit py312 E/F rule set, so the gate stays stable across ruff releases. make check now runs uv sync --frozen, ruff, compileall, and pytest; make lint runs ruff alone. The Gitea job splits the same checks into named steps for readable failures and has a 10-minute timeout. No secrets, image push, or cluster access.
43 lines
902 B
TOML
43 lines
902 B
TOML
[project]
|
|
name = "pulsecast-ml"
|
|
version = "0.1.0"
|
|
description = "PulseCast ML: footfall pipeline, weather-aware forecast, scenario engine, FastAPI service"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
"fastapi>=0.162.7",
|
|
"httpx>=0.28.1",
|
|
"joblib>=1.6.0",
|
|
"numpy>=2.5.4",
|
|
"pandas>=3.1.1",
|
|
"pyarrow>=26.0.1",
|
|
"python-multipart>=0.0.20",
|
|
"scikit-learn>=1.9.1",
|
|
"uvicorn[standard]>=0.54.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/pulsecast"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
addopts = "-q"
|
|
|
|
[tool.ruff]
|
|
target-version = "py312"
|
|
line-length = 100
|
|
|
|
[tool.ruff.lint]
|
|
# Stable, fast static gate: syntax errors, undefined/unused names, imports.
|
|
select = ["E4", "E7", "E9", "F"]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=9.2.0",
|
|
"ruff>=0.17.5",
|
|
]
|