Debian Codegraph @

.pre-commit-hooks.yaml

raw
1 - id: commitizen
2 name: commitizen check
3 description: >
4 Check whether the current commit message follows committing rules. Allow
5 empty commit messages by default, because they typically indicate to Git
6 that the commit should be aborted.
7 entry: cz check
8 args: [--allow-abort, --commit-msg-file]
9 stages: [commit-msg]
10 language: python
11 language_version: python3
12 minimum_pre_commit_version: "1.4.3"
13
14 - id: commitizen-branch
15 name: commitizen check branch
16 description: >
17 Check all commit messages that are already on the current branch but not the
18 default branch on the origin repository. Useful for checking messages after
19 the fact (e.g., pre-push or in CI) without an expensive check of the entire
20 repository history.
21 entry: cz check
22 args: [--rev-range, "$PRE_COMMIT_FROM_REF..$PRE_COMMIT_TO_REF"]
23 always_run: true
24 pass_filenames: false
25 language: python
26 language_version: python3
27 minimum_pre_commit_version: "3.2.0"
28 stages: [pre-push]