File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,10 @@ clang-format = {
169
169
};
170
170
```
171
171
172
+ ## Git
173
+
174
+ - [ commitizen] ( https://github.com/commitizen-tools/commitizen )
175
+
172
176
## Custom hooks
173
177
174
178
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 674
674
types = [ "file" ] ;
675
675
} ;
676
676
677
+ commitizen =
678
+ {
679
+ name = "commitizen check" ;
680
+ description = ''
681
+ Check whether the current commit message follows commiting rules.
682
+ '' ;
683
+ entry = "${ tools . commitizen } /bin/cz check --allow-abort --commit-msg-file" ;
684
+ stages = [ "commit-msg" ] ;
685
+ } ;
677
686
} ;
678
687
}
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
45
46
} :
46
47
47
48
{
48
- inherit actionlint alejandra cabal-fmt cabal2nix cargo clang-tools clippy deadnix dhall editorconfig-checker hadolint hindent hlint hpack html-tidy nix-linter nixfmt nixpkgs-fmt ormolu rustfmt shellcheck shfmt statix stylish-haskell stylua typos go mdsh revive ;
49
+ inherit actionlint alejandra cabal-fmt cabal2nix cargo clang-tools clippy commitizen deadnix dhall editorconfig-checker hadolint hindent hlint hpack html-tidy nix-linter nixfmt nixpkgs-fmt ormolu rustfmt shellcheck shfmt statix stylish-haskell stylua typos go mdsh revive ;
49
50
inherit ( elmPackages ) elm-format elm-review elm-test ;
50
51
# TODO: these two should be statically compiled
51
52
inherit ( haskellPackages ) brittany fourmolu ;
You can’t perform that action at this time.
0 commit comments