add githooks and setup.sh
Some checks failed
CI / build (pull_request) Successful in 14s
CI / build (push) Successful in 11s
CI / lint (pull_request) Successful in 9s
CI / create-and-publish-docker-image (pull_request) Successful in 13s
CI / lint (push) Successful in 9s
CI / create-and-publish-docker-image (push) Has been cancelled

This commit was merged in pull request #4.
This commit is contained in:
2025-08-31 18:14:50 +02:00
parent 1100be75c5
commit 90d32e29f4
4 changed files with 15 additions and 5 deletions

12
githooks/pre-commit Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
echo "Running pre-commit hooks..."
biome check --write
biome lint --write
if git diff --quiet; then
exit 0
else
git add -u
fi