Skip to content

Commit

Permalink
Merge pull request #536 from djacu/djacu/improved-remove-before-after…
Browse files Browse the repository at this point in the history
…-from-config-json

bugfix: remove before/after options from config json file
  • Loading branch information
domenkozar authored Dec 15, 2024
2 parents c2b3567 + 3e7d791 commit 4c8e75e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion modules/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ let
mapAttrsToList
mkOption
types
removeAttrs
remove
;

Expand Down Expand Up @@ -43,8 +44,15 @@ let
)
enabledHooks
);
cleanedHooks = builtins.map (
hook:
removeAttrs hook [
"before"
"after"
]
) sortedHooks.result;
in
sortedHooks.result;
cleanedHooks;

configFile =
performAssertions (
Expand Down

0 comments on commit 4c8e75e

Please sign in to comment.