From 889908642a8fcc1cd8a7be3d94ccfaf93c1800bd Mon Sep 17 00:00:00 2001 From: Terje Larsen Date: Mon, 20 Nov 2023 13:07:37 +0000 Subject: [PATCH] Add conform --- modules/hooks.nix | 7 +++++++ nix/tools.nix | 2 ++ 2 files changed, 9 insertions(+) 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