From 6988b714210d4944901d1302a04078f95c51e18a 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 e7bba8ad..22beae90 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -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" ]; + }; }; } diff --git a/nix/tools.nix b/nix/tools.nix index 212ce185..9d09dbea 100644 --- a/nix/tools.nix +++ b/nix/tools.nix @@ -11,6 +11,7 @@ , clang-tools , clippy , commitizen +, conform , convco , crystal , deadnix @@ -87,6 +88,7 @@ in cargo clang-tools clippy + conform convco crystal deadnix