]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ui: Update code formatting command in pre-commit hook (#24685)
authorAleksander Grygier <redacted>
Thu, 18 Jun 2026 06:33:50 +0000 (08:33 +0200)
committerGitHub <redacted>
Thu, 18 Jun 2026 06:33:50 +0000 (08:33 +0200)
tools/ui/scripts/git-hooks/pre-commit.sh
tools/ui/scripts/git-hooks/pre-push.sh

index 1fa83efde596e259091acb016127cc8fdf3e1b50..208ef56fcd53f76b8c23da23d2efa3b08fb9a67b 100755 (executable)
@@ -27,7 +27,7 @@ echo "Running pre-commit checks for llama-ui..."
 # Format only staged files
 staged_ui=$(git diff --cached --name-only -- tools/ui/)
 if [ -n "$staged_ui" ]; then
-    echo "$staged_ui" | xargs npx --no-install prettier --write
+    echo "$staged_ui" | xargs npm run format
     format_ok=$?
     # Re-stage formatted files
     git add tools/ui/
index 953d3a2243047a529ab082955e114026a198f9a3..66d79b950a36f506750ea2ee96ea0bc806d86f94 100755 (executable)
@@ -57,6 +57,7 @@ if [ $lint_ok -ne 0 ]; then
     echo "❌ Lint failed"
     exit 1
 fi
+
 if [ $test_ok -ne 0 ]; then
     echo "❌ Tests failed"
     exit 1