From b277c95ba88ab94207e714fefa7f84a6aeae8785 Mon Sep 17 00:00:00 2001 From: thek4n Date: Sat, 21 Feb 2026 10:48:05 +0300 Subject: [PATCH] feat(pre-commit): add lint for commit messages --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6029cd9..696987a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,6 +13,15 @@ repos: - id: check-shebang-scripts-are-executable - id: check-executables-have-shebangs + - repo: https://github.com/jorisroovers/gitlint + rev: v0.19.1 + hooks: + - id: gitlint + args: [ + "--ignore", "body-is-missing", "--contrib=CT1", "--msg-filename" + ] + stages: [commit-msg] + - repo: local hooks: - id: clippy