From c1dde8ef3f20fe96bda898c5bd7ac516b5117008 Mon Sep 17 00:00:00 2001 From: Ikalus1988 <136884451+Ikalus1988@users.noreply.github.com> Date: Sat, 13 Jun 2026 16:04:11 +0800 Subject: [PATCH] docs: add check-dco to README hooks list --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 8432455..2ee0cdc 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,12 @@ Require literal syntax when initializing empty or zero Python builtin types. #### `check-case-conflict` Check for files with names that would conflict on a case-insensitive filesystem like MacOS HFS+ or Windows FAT. +#### `check-dco` +Verifies that commit messages contain a valid ``Signed-off-by: Name `` +line per the `Developer Certificate of Origin `__. + - This hook runs in the ``commit-msg`` stage to catch missing sign-offs + before they're pushed. + #### `check-executables-have-shebangs` Checks that non-binary executables have a proper shebang. @@ -212,3 +218,4 @@ Trims trailing whitespace. If you'd like to use these hooks, they're also available as a standalone package. Simply `pip install pre-commit-hooks` +