Skip to content

Commit 09d2e63

Browse files
committed
lint
1 parent 35a4444 commit 09d2e63

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

flake-module.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ in
3737
Nixpkgs to use in the pre-commit [`settings`](#opt-perSystem.pre-commit.settings).
3838
'';
3939
default = pkgs;
40-
defaultText = lib.literalMD "`pkgs` (module argument)";
40+
defaultText = lib.literalExpression "`pkgs` (module argument)";
4141
};
4242
settings = mkOption {
4343
type = types.submoduleWith {
@@ -51,21 +51,21 @@ in
5151
};
5252
shellHook = mkOption {
5353
type = types.str;
54-
description = "A shell hook that sets up the git hooks in a development shell.";
54+
description = "A shell hook that installs up the git hooks in a development shell.";
5555
default = cfg.settings.installationScript;
5656
defaultText = lib.literalExpression "bash statements";
5757
readOnly = true;
5858
};
5959
installationScript = mkOption {
6060
type = types.str;
61-
description = "A bash fragment that sets up [pre-commit](https://pre-commit.com/).";
61+
description = "A bash snippet that sets up the git hooks in the current repository.";
6262
default = cfg.settings.installationScript;
63-
defaultText = lib.literalMD "bash statements";
63+
defaultText = lib.literalExpression "bash statements";
6464
readOnly = true;
6565
};
6666
devShell = mkOption {
6767
type = types.package;
68-
description = "A development shell with pre-commit installed and setup.";
68+
description = "A development shell with the git hooks installed and all the packages made available.";
6969
readOnly = true;
7070
};
7171
};

modules/hook.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ in
5757
name = mkOption {
5858
type = types.str;
5959
default = name;
60-
defaultText = lib.literalMD "the attribute name the hook submodule is bound to, same as `id`";
60+
defaultText = lib.literalExpression "the attribute name the hook submodule is bound to, same as `id`";
6161
description =
6262
''
6363
The name of the hook. Shown during hook execution.

0 commit comments

Comments
 (0)