From 588bc798cae2e2b3f8ca529ee2891f5c11499c8f Mon Sep 17 00:00:00 2001 From: NAHO <90870942+trueNAHO@users.noreply.github.com> Date: Mon, 20 Nov 2023 16:48:06 +0100 Subject: [PATCH] fix(modules/hooks): 'settings.typos.exclude' implies '--force-exclude' The 'settings.typos.exclude' should imply the '--force-exclude' option in order to "Respect excluded files even for paths passed explicitly". Follows: - https://github.com/cachix/pre-commit-hooks.nix/pull/332 - https://github.com/crate-ci/typos/commit/8314a1567d03ff2b2b2e294c8bb63a4edcdf106a --- modules/hooks.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hooks.nix b/modules/hooks.nix index 6391b15e..5c71a3e2 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -1617,7 +1617,7 @@ in [ (color != "") "--color ${color}" ] [ (configPath != "") "--config ${configPath}" ] [ (config != "" && configPath == "") "--config ${configFile}" ] - [ (exclude != "") "--exclude ${exclude}" ] + [ (exclude != "") "--exclude ${exclude} --force-exclude" ] [ (format != "") "--format ${format}" ] [ (locale != "") "--locale ${locale}" ] [ (write && !diff) "--write-changes" ]