chore: bootstrap Godot quality tools

This commit is contained in:
Rijad Zuzo
2026-07-09 23:32:03 +02:00
parent 5cbab527bf
commit 8419116008
7 changed files with 46 additions and 14 deletions
+4 -2
View File
@@ -8,14 +8,16 @@ cd "$ROOT"
# detect gdformat
FMT=""
if command -v gdformat &>/dev/null; then
if [[ -x "$ROOT/.venv/bin/gdformat" ]]; then
FMT="$ROOT/.venv/bin/gdformat"
elif command -v gdformat &>/dev/null; then
FMT="gdformat"
elif python -m gdtoolkit.formatter --help &>/dev/null 2>&1; then
FMT="python -m gdtoolkit.formatter"
fi
if [[ -z "$FMT" ]]; then
echo "ERROR: gdformat not found. Install: pip install gdtoolkit"
echo "ERROR: gdformat not found. Install requirements-dev.txt; see docs/local_quality_gate.md."
exit 1
fi