Skip to content

Commit

Permalink
feat: add verbose option for hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Schaaf <[email protected]>
  • Loading branch information
snpschaaf committed May 25, 2023
1 parent 61e567d commit efa7478
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/pre-commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,19 @@ let
default = cfg.default_stages;
defaultText = (lib.literalExpression or lib.literalExample) "default_stages";
};
verbose = mkOption {
type = types.bool;
default = false;
description = lib.mdDoc ''
forces the output of the hook to be printed even when the hook passes.
'';
};
};
config =
{
raw =
{
inherit (config) name entry language files stages types types_or pass_filenames;
inherit (config) name entry language files stages types types_or pass_filenames verbose;
id = name;
exclude = mergeExcludes config.excludes;
};
Expand Down

0 comments on commit efa7478

Please sign in to comment.