Skip to content

Commit

Permalink
Expose always_run option
Browse files Browse the repository at this point in the history
  • Loading branch information
wfdewith committed Aug 5, 2023
1 parent ebb43bd commit 2b9608f
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 @@ -148,12 +148,19 @@ let
forces the output of the hook to be printed even when the hook passes.
'';
};
always_run = mkOption {
type = types.bool;
default = false;
description = lib.mdDoc ''
if true this hook will run even if there are no matching files.
'';
};
};
config =
{
raw =
{
inherit (config) name entry language files stages types types_or pass_filenames verbose;
inherit (config) name entry language files stages types types_or pass_filenames verbose always_run;
id = name;
exclude = mergeExcludes config.excludes;
};
Expand Down

0 comments on commit 2b9608f

Please sign in to comment.