fix: install commit-msg hook for local commitlint checks (#189)

This commit is contained in:
2026-03-10 18:08:55 +02:00
committed by GitHub
parent ddf674d4c9
commit 042b7a27a4
2 changed files with 6 additions and 0 deletions

View File

@@ -153,6 +153,11 @@ refactor: move inline YAML to fixtures for better test maintainability
- Do NOT argue or explain why they might be useful
- Just comply immediately and recommit without bylines
### 🚫 Commit Messages Over 100 Characters
Commitlint enforces `header-max-length: 100`. Keep commit message first lines under 100 characters.
The `commit-msg` hook catches this locally if installed via `make pre-commit-install`.
### ✅ Prevention Mechanisms
**Before writing ANY code:**

View File

@@ -139,6 +139,7 @@ pre-commit-install: ## Install pre-commit hooks
@command -v pre-commit >/dev/null 2>&1 || \
{ echo "Please install pre-commit or run 'make devtools'"; exit 1; }
pre-commit install
pre-commit install --hook-type commit-msg
pre-commit-update: ## Update pre-commit hooks to latest versions
@echo "Updating pre-commit hooks..."