Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typos: unset pass_filenames #387

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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