fix(dev): install a lightweight formatting commit hook

This commit is contained in:
overtrue
2026-09-05 18:31:40 +08:00
parent 7ba5cd6888
commit b84e8a949e
3 changed files with 17 additions and 42 deletions
+3 -2
View File
@@ -3,9 +3,10 @@
.NOTPARALLEL: pre-commit pre-pr dev-check
.PHONY: setup-hooks
setup-hooks: ## Set up git hooks
setup-hooks: ## Install the configured pre-commit hooks
@echo "🔧 Setting up git hooks..."
chmod +x .git/hooks/pre-commit
pre-commit validate-config
pre-commit install
@echo "✅ Git hooks setup complete!"
.PHONY: doc-paths-check