Skip to content

Commit

Permalink
fix: fixup args and exclude_types
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Aug 6, 2024
1 parent d1948b4 commit c22803e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 6 additions & 5 deletions modules/hook.nix
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ in

exclude_types = mkOption {
type = types.listOf types.str;
description = lib.mdDoc
description =
''
List of file types to exclude. See [Filtering files with types](https://pre-commit.com/#plugins).
List of file types to exclude. See [Filtering files with types](https://pre-commit.com/#filtering-files-with-types).
'';
default = [ ];
};
Expand Down Expand Up @@ -178,9 +178,10 @@ in

args = mkOption {
type = types.listOf types.str;
description = lib.mdDoc ''
List of additional parameters to pass to the hook.
'';
description =
''
List of additional parameters to pass to the hook.
'';
default = [ ];
};
};
Expand Down
3 changes: 1 addition & 2 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3229,8 +3229,7 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.ormol
description = "Format shell files.";
types = [ "shell" ];
package = tools.shfmt;
entry = "${hooks.shfmt.package}/bin/shfmt -w -l";
args = [ "-s" ];
entry = "${hooks.shfmt.package}/bin/shfmt -w -s -l";
};
single-quoted-strings =
{
Expand Down

0 comments on commit c22803e

Please sign in to comment.