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
+8
View File
@@ -43,6 +43,14 @@ den Buchungsbeginn ab.
./extend_pins.py --apply --only-code 123456 # Schreibtest auf einzelnen Code
```
## Entwicklung
- Dependencies via **uv**: `uv sync` (nur Dev-Abhängigkeiten: pytest, ruff —
das Script selbst ist reine Stdlib, der systemd-Lauf braucht kein venv)
- Tests: `uv run pytest`
- Lint/Format: `uv run ruff check` / `uv run ruff format`
- Konventionen: siehe `AGENT.md` (Source code Englisch, README Deutsch)
## Deployment
```bash