Skip to content

Commit b4b6f94

Browse files
authored
Merge pull request #258 from N5GEH/238-check-commit-msg-in-pre-commit
238 check commit msg in pre commit
2 parents 0a5b5a6 + 2b51961 commit b4b6f94

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

.pre-commit-config.yaml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
11
exclude: '^static/[bootstrap|htmx]/'
2+
default_install_hook_types:
3+
- pre-commit
4+
- commit-msg
25
repos:
3-
- repo: https://github.com/pre-commit/pre-commit-hooks
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
47
rev: v4.5.0
58
hooks:
6-
- id: check-yaml
7-
- id: end-of-file-fixer
8-
- id: trailing-whitespace
9-
- repo: https://github.com/psf/black
9+
- id: check-yaml
10+
- id: end-of-file-fixer
11+
- id: trailing-whitespace
12+
13+
- repo: https://github.com/psf/black
1014
rev: 24.1.1
1115
hooks:
12-
- id: black
16+
- id: black
17+
18+
- repo: https://github.com/compilerla/conventional-pre-commit
19+
rev: v4.0.0
20+
hooks:
21+
- id: conventional-pre-commit
22+
stages: [ commit-msg ]
23+
args: [
24+
"--force-scope",
25+
"--verbose",
26+
"--scopes",
27+
"entirety,entities,users,subscriptions,smartdatamodels,devices,semantics"
28+
]

0 commit comments

Comments
 (0)