diff --git a/modules/hooks.nix b/modules/hooks.nix index a3539b93..e8f202d9 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -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" ]; + }; }; } diff --git a/nix/tools.nix b/nix/tools.nix index aa49d5ea..4971672e 100644 --- a/nix/tools.nix +++ b/nix/tools.nix @@ -11,6 +11,7 @@ , clang-tools , clippy , commitizen +, conform , convco , crystal , deadnix @@ -88,6 +89,7 @@ in cargo clang-tools clippy + conform convco crystal deadnix