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:
co-authored by
Claude Opus 5.5
parent
b1bc9395cf
commit
1389b46846
+7
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user