From 5c929a161f1ef339ff3e8c7d339f4eb2074a6235 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sat, 7 Sep 2024 00:27:24 +0100 Subject: [PATCH] flake: remove pre-commit from `checks` output --- flake-modules/dev/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake-modules/dev/default.nix b/flake-modules/dev/default.nix index 96673f6b..d6f769dc 100644 --- a/flake-modules/dev/default.nix +++ b/flake-modules/dev/default.nix @@ -18,6 +18,7 @@ lib.optionalAttrs (inputs.treefmt-nix ? flakeModule) { treefmt.config = { projectRootFile = "flake.nix"; + flakeCheck = true; programs = { isort.enable = true; @@ -58,6 +59,9 @@ } // lib.optionalAttrs (inputs.git-hooks ? flakeModule) { pre-commit = { + # We have a treefmt check already, so this is redundant. + check.enable = false; + settings.hooks = { treefmt.enable = true; typos.enable = true;