fix(hooks): use python3 fallback in compile check script

This commit is contained in:
Wikid82
2025-11-19 07:24:50 -05:00
parent 069e8112c3
commit 50eefbda08

View File

@@ -2,4 +2,11 @@
set -euo pipefail
# Run python -m compileall quietly to catch syntax errors in the repo.
python -m compileall -q .
if command -v python3 &>/dev/null; then
python3 -m compileall -q .
elif command -v python &>/dev/null; then
python -m compileall -q .
else
echo "Error: neither python3 nor python found."
exit 1
fi