Skip to content

Commit a130d70

Browse files
committed
Fix typos and add pre-commit check
1 parent e611897 commit a130d70

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.typos.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[default.extend-words]
2+
edn = "edn" # `cljfmt` option
3+
mosquitto = "mosquitto" # `typos` example

modules/hook.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ in
5050
''
5151
An optional package that provides the hook.
5252
53-
For most hooks, the package name matches the name of the hook and can be overriden directly.
53+
For most hooks, the package name matches the name of the hook and can be overridden directly.
5454
5555
```
5656
hooks.nixfmt.package = pkgs.nixfmt;

modules/hooks.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1450,14 +1450,14 @@ in
14501450
quiet =
14511451
mkOption {
14521452
type = types.bool;
1453-
description = lib.mdDoc "Less output per occurence.";
1453+
description = lib.mdDoc "Less output per occurrence.";
14541454
default = false;
14551455
};
14561456

14571457
verbose =
14581458
mkOption {
14591459
type = types.bool;
1460-
description = lib.mdDoc "More output per occurence.";
1460+
description = lib.mdDoc "More output per occurrence.";
14611461
default = false;
14621462
};
14631463

@@ -2301,7 +2301,7 @@ in
23012301
};
23022302
lychee = {
23032303
name = "lychee";
2304-
description = "A fast, async, stream-based link checker that finds broken hyperlinks and mail adresses inside Markdown, HTML, reStructuredText, or any other text file or website.";
2304+
description = "A fast, async, stream-based link checker that finds broken hyperlinks and mail addresses inside Markdown, HTML, reStructuredText, or any other text file or website.";
23052305
package = tools.lychee;
23062306
entry =
23072307
let
@@ -2925,7 +2925,7 @@ in
29252925
package = tools.vale;
29262926
entry =
29272927
let
2928-
# TODO: was .vale.ini, throwed error in Nix
2928+
# TODO: was .vale.ini, threw error in Nix
29292929
configFile = builtins.toFile "vale.ini" "${hooks.vale.settings.config}";
29302930
cmdArgs =
29312931
mkCmdArgs

nix/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ let
2323
hooks = {
2424
shellcheck.enable = true;
2525
nixpkgs-fmt.enable = true;
26+
typos.enable = true;
2627
};
2728
};
2829
all-tools-eval =

0 commit comments

Comments
 (0)