Commit-Hook ohne python3 nicht blockieren
Fehlt python3 (frischer Rechner), bricht der Hook den Commit nicht ab, sondern weist darauf hin, dass die Code-Map nicht erneuert wurde. README nennt Python 3 als Voraussetzung fuer die Werkzeuge.
This commit is contained in:
parent
4ec373070d
commit
ac0b840dc0
2 changed files with 7 additions and 0 deletions
|
|
@ -21,6 +21,12 @@ if [ -n "$(git diff --name-only -- tippspiel tools)" ]; then
|
|||
echo "Hinweis: nicht gestagte Code-Änderungen – docs/code-map.md beschreibt den Arbeitsstand." >&2
|
||||
fi
|
||||
|
||||
# Ein fehlendes python3 darf keinen Commit blockieren.
|
||||
if ! command -v python3 >/dev/null 2>&1; then
|
||||
echo "Hinweis: python3 fehlt – docs/code-map.md wurde nicht erneuert (siehe README)." >&2
|
||||
exit 0
|
||||
fi
|
||||
|
||||
./tools/gen_codemap.py >/dev/null
|
||||
git add docs/code-map.md
|
||||
echo "docs/code-map.md neu erzeugt und gestaged."
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ Dieses Projekt ist der offizielle Nachfolger des alten Tippspiels. Es basiert au
|
|||
## Voraussetzungen
|
||||
|
||||
- Docker & Docker Compose V2
|
||||
- Python 3 (nur für `tools/*.py` und die Code-Map)
|
||||
|
||||
## Lokale Entwicklung und Testumgebung starten
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue