Skip to content

Commit

Permalink
Merge pull request #350 from totoroot/add-args-to-isort-hook
Browse files Browse the repository at this point in the history
Add flags to isort hook
  • Loading branch information
domenkozar authored Sep 10, 2023
2 parents 3590d18 + e38142d commit 58e22ea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ in
description = lib.mdDoc "Built-in profiles to allow easy interoperability with common projects and code styles.";
default = "";
};
flags =
mkOption {
type = types.str;
description = lib.mdDoc "Flags passed to isort. See all available [here](https://pycqa.github.io/isort/docs/configuration/options.html).";
default = "";
};
};
ormolu =
{
Expand Down Expand Up @@ -858,7 +864,7 @@ in
[ (profile != "") " --profile ${profile}" ]
]);
in
"${pkgs.python3Packages.isort}/bin/isort${cmdArgs}";
"${pkgs.python3Packages.isort}/bin/isort${cmdArgs} ${settings.isort.flags}";
};
latexindent =
{
Expand Down

0 comments on commit 58e22ea

Please sign in to comment.