File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,10 @@ clang-format = {
171
171
};
172
172
```
173
173
174
+ ## Git
175
+
176
+ - [ commitizen] ( https://github.com/commitizen-tools/commitizen )
177
+
174
178
## Custom hooks
175
179
176
180
Sometimes it is useful to add a project specific command as an extra check that
Original file line number Diff line number Diff line change 739
739
types = [ "python" ] ;
740
740
} ;
741
741
742
+ commitizen =
743
+ {
744
+ name = "commitizen check" ;
745
+ description = ''
746
+ Check whether the current commit message follows commiting rules.
747
+ '' ;
748
+ entry = "${ tools . commitizen } /bin/cz check --allow-abort --commit-msg-file" ;
749
+ stages = [ "commit-msg" ] ;
750
+ } ;
742
751
} ;
743
752
}
Original file line number Diff line number Diff line change 7
7
, cargo
8
8
, clang-tools
9
9
, clippy
10
+ , commitizen
10
11
, deadnix
11
12
, dhall
12
13
, editorconfig-checker
60
61
terraform-fmt = callPackage ./terraform-fmt { } ;
61
62
latexindent = texlive . combined . scheme-medium ;
62
63
chktex = texlive . combined . scheme-medium ;
64
+ commitizen = commitizen . overrideAttrs ( _ : _ : { doCheck = false ; } ) ;
63
65
}
You can’t perform that action at this time.
0 commit comments