Skip to content

Commit

Permalink
Add conform
Browse files Browse the repository at this point in the history
  • Loading branch information
terlar committed Nov 20, 2023
1 parent e558068 commit 6988b71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2208,5 +2208,12 @@ in
description = "Runs the git-annex hook for large file support";
entry = "${tools.git-annex}/bin/git-annex pre-commit";
};

conform = {
name = "conform enforce";
description = "Policy enforcement for commits.";
entry = "${tools.conform}/bin/conform enforce --commit-msg-file";
stages = [ "commit-msg" ];
};
};
}
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
, clang-tools
, clippy
, commitizen
, conform
, convco
, crystal
, deadnix
Expand Down Expand Up @@ -87,6 +88,7 @@ in
cargo
clang-tools
clippy
conform
convco
crystal
deadnix
Expand Down

0 comments on commit 6988b71

Please sign in to comment.