Skip to content

Commit

Permalink
Merge pull request #387 from phip1611/typos
Browse files Browse the repository at this point in the history
typos: unset pass_filenames
  • Loading branch information
domenkozar authored Jan 12, 2024
2 parents b026563 + b568e6d commit 769a234
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,7 @@ in
type = types.str;
description = lib.mdDoc "Path to a custom config file.";
default = "";
example = ".typos.toml";
};

diff =
Expand Down Expand Up @@ -2153,6 +2154,11 @@ in
in
"${tools.typos}/bin/typos ${cmdArgs}${lib.optionalString settings.typos.diff " --diff"}${lib.optionalString settings.typos.hidden " --hidden"}";
types = [ "text" ];
# Typos is supposed to run on the whole tree. If this is set to true,
# the system gets stuck for large projects due to very high memory
# consumption. The restriction on with files typos run, should be
# specified in the typos config file.
pass_filenames = false;
};
typstfmt = {
name = "typstfmt";
Expand Down

0 comments on commit 769a234

Please sign in to comment.