From 4197ece130242467189b39619f9e9c6b272b8474 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 22 May 2024 13:24:03 +0200 Subject: build: fix pre-commit check exclude/ignore patterns --- nix/pre-commit-checks.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nix/pre-commit-checks.nix') diff --git a/nix/pre-commit-checks.nix b/nix/pre-commit-checks.nix index e3b651e..a1612ef 100644 --- a/nix/pre-commit-checks.nix +++ b/nix/pre-commit-checks.nix @@ -38,15 +38,17 @@ rec { statix = { enable = true; + # ignore is a glob settings.ignore = [ "nix/overlays/*" ]; }; deadnix = { enable = true; - excludes = [ "nix/overlays/*" ]; + # excludes is a regex + excludes = [ "nix/overlays/.*" ]; }; nixpkgs-fmt = { enable = true; - excludes = [ "nix/overlays/*" ]; + excludes = [ "nix/overlays/.*" ]; }; convco.enable = true; -- cgit 1.4.1