Skip to content

Commit b9f2779

Browse files
committed
Add hook to check for signoff in commit messages
Since this is checked on PR, it could also be checked at commit so users can avoid making commits to the tree without expected documentation. Signed-off-by: Ian Fijolek <[email protected]>
1 parent 976847e commit b9f2779

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.pre-commit-config.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
default_install_hook_types: [pre-commit, commit-msg]
12
repos:
23
- repo: https://github.com/astral-sh/ruff-pre-commit
34
rev: v0.9.6
@@ -26,3 +27,8 @@ repos:
2627
rev: v2.2.5
2728
hooks:
2829
- id: codespell
30+
31+
- repo: https://github.com/gklein/check_signoff
32+
rev: v1.0.5
33+
hooks:
34+
- id: check-signoff

0 commit comments

Comments
 (0)