forked from wlkns-dev/stimmwerk
- ROADMAP.md: Stand (27 Funktionen, ehrlich nach gebaut/geprüft getrennt), Todo, Entscheidungen, Risiken, Versionspakete, Aufträge - KLICKTESTS.md: 10 Prozesse, 31 Tests, aus den Abnahme-Punkten des Handbuchs abgeleitet (Entwurf zur Prüfung durch den Nutzer) - tools/check-roadmap.py mit Tests: doppelte IDs, tote Verweise, nächste ID, Testzeilen mit vier Zellen, Berichte - AGENTS.md: einziger Schreiber, IDs, Definition of Done, Ehrlichkeit, Ritual, Abschlussformat - CI und Pre-Push-Hook prüfen die Roadmap mit Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
10 lines
625 B
Bash
Executable File
10 lines
625 B
Bash
Executable File
#!/bin/sh
|
|
# Prüft vor jedem Push, was auch die CI prüft: Format, Clippy, Tests. Überspringen: SKIP_CHECKS=1 git push
|
|
# Einschalten (einmal pro Klon): git config core.hooksPath .githooks
|
|
[ -n "$SKIP_CHECKS" ] && exit 0
|
|
cd "$(git rev-parse --show-toplevel)" || exit 1
|
|
echo "pre-push: Roadmap prüfen"; python3 tools/check-roadmap.py || exit 1
|
|
echo "pre-push: cargo fmt --check"; cargo fmt --check || { echo "→ Format: bitte 'cargo fmt' ausführen"; exit 1; }
|
|
echo "pre-push: cargo clippy"; cargo clippy --all-targets --locked -- -D warnings || exit 1
|
|
echo "pre-push: cargo test"; cargo test --locked || exit 1
|