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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user