pruefen: auch ausserhalb eines Git-Checkouts; probelauf-box.sh prueft HEAD auf der Box

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Hitonabi
2026-09-24 17:43:43 +02:00
co-authored by Claude Opus 5.5
parent b1bc9395cf
commit 1389b46846
2 changed files with 26 additions and 1 deletions
+7 -1
View File
@@ -25,7 +25,13 @@ for f in deploy/*.sh deploy/jobs/*.sh; do
done
schritt "Python-Syntax"
git ls-files '*.py' | grep -v '^frontend/' | xargs "$PY" -m py_compile || fehler=1
# Außerhalb eines Git-Checkouts (Probelauf eines Abzugs auf der Box) alle .py-Dateien nehmen.
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
git ls-files '*.py' | grep -v '^frontend/' | xargs "$PY" -m py_compile || fehler=1
else
find . -name '*.py' -not -path './frontend/*' -not -path '*/.venv/*' -not -path '*/node_modules/*' -print0 \
| xargs -0 "$PY" -m py_compile || fehler=1
fi
schritt "Lint (ruff)"
if command -v ruff >/dev/null 2>&1; then