Skip to content

Commit

Permalink
Add conform
Browse files Browse the repository at this point in the history
  • Loading branch information
terlar committed Dec 11, 2023
1 parent f99ed85 commit 8899086
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 @@ -2227,5 +2227,12 @@ in
# all file names in a single run.
require_serial = true;
};

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 @@ -88,6 +89,7 @@ in
cargo
clang-tools
clippy
conform
convco
crystal
deadnix
Expand Down

0 comments on commit 8899086

Please sign in to comment.