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:
@@ -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 = ["."]
|
||||
Reference in New Issue
Block a user