Skip to content

Commit 3166381

Browse files
authored
Merge pull request #417 from loicreynier/fix-typos
Fix typos and add pre-commit check
2 parents 0d676ca + a130d70 commit 3166381

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
@@ -1464,14 +1464,14 @@ in
14641464
quiet =
14651465
mkOption {
14661466
type = types.bool;
1467-
description = lib.mdDoc "Less output per occurence.";
1467+
description = lib.mdDoc "Less output per occurrence.";
14681468
default = false;
14691469
};
14701470

14711471
verbose =
14721472
mkOption {
14731473
type = types.bool;
1474-
description = lib.mdDoc "More output per occurence.";
1474+
description = lib.mdDoc "More output per occurrence.";
14751475
default = false;
14761476
};
14771477

@@ -2316,7 +2316,7 @@ in
23162316
};
23172317
lychee = {
23182318
name = "lychee";
2319-
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.";
2319+
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.";
23202320
package = tools.lychee;
23212321
entry =
23222322
let
@@ -2960,7 +2960,7 @@ in
29602960
package = tools.vale;
29612961
entry =
29622962
let
2963-
# TODO: was .vale.ini, throwed error in Nix
2963+
# TODO: was .vale.ini, threw error in Nix
29642964
configFile = builtins.toFile "vale.ini" "${hooks.vale.settings.config}";
29652965
cmdArgs =
29662966
mkCmdArgs

nix/default.nix

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

0 commit comments

Comments
 (0)