Add pytest suite, uv project setup and ruff compliance

- pyproject.toml: dev deps via uv (pytest, ruff), pytest and ruff config
- tests/: 24 tests for extend_pins (helpers + mocked main flow) and
  glutz_api.load_env; no network access
- translate source code to English per AGENT.md
- fix ruff findings (unused import, max() simplification, shebang)
This commit is contained in:
2026-10-23 08:49:49 +02:00
parent 66fef822de
commit d2a612a37e
9 changed files with 519 additions and 67 deletions
+21
View File
@@ -0,0 +1,21 @@
[project]
name = "glutz-maintenances"
version = "0.1.0"
description = "Extend wyby booking PINs on a Glutz eAccess system to full-day validity"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []
[dependency-groups]
dev = [
"pytest>=8.0",
"ruff>=0.8",
]
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]