Skip to content

Commit 2b14b9c

Browse files
committed
.pre-commit-config.yaml: Add commit formatter hook.
Signed-off-by: zhanglinjing <Linjing.Zhang@infineon.com>
1 parent 1e6d346 commit 2b14b9c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,12 @@ repos:
55
- id: clang-format
66
args: ["-style=file:config/clang-format/.clang-format"]
77
exclude: ^cores/(avr|usblib|xmc_lib)/
8-
files: \.(c|cpp|h|hpp)$
8+
files: \.(c|cpp|h|hpp)$
9+
- repo: local
10+
hooks:
11+
- id: verifygitlog
12+
name: git commit message format checker
13+
entry: python3 tools/verifygitlog.py --check-file --ignore-rebase
14+
language: python
15+
verbose: true
16+
stages: [commit-msg]

0 commit comments

Comments
 (0)