Skip to content

Commit

Permalink
Merge pull request #417 from loicreynier/fix-typos
Browse files Browse the repository at this point in the history
Fix typos and add pre-commit check
  • Loading branch information
domenkozar authored Mar 30, 2024
2 parents 0d676ca + a130d70 commit 3166381
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[default.extend-words]
edn = "edn" # `cljfmt` option
mosquitto = "mosquitto" # `typos` example
2 changes: 1 addition & 1 deletion modules/hook.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ in
''
An optional package that provides the hook.
For most hooks, the package name matches the name of the hook and can be overriden directly.
For most hooks, the package name matches the name of the hook and can be overridden directly.
```
hooks.nixfmt.package = pkgs.nixfmt;
Expand Down
8 changes: 4 additions & 4 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1464,14 +1464,14 @@ in
quiet =
mkOption {
type = types.bool;
description = lib.mdDoc "Less output per occurence.";
description = lib.mdDoc "Less output per occurrence.";
default = false;
};

verbose =
mkOption {
type = types.bool;
description = lib.mdDoc "More output per occurence.";
description = lib.mdDoc "More output per occurrence.";
default = false;
};

Expand Down Expand Up @@ -2316,7 +2316,7 @@ in
};
lychee = {
name = "lychee";
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.";
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.";
package = tools.lychee;
entry =
let
Expand Down Expand Up @@ -2960,7 +2960,7 @@ in
package = tools.vale;
entry =
let
# TODO: was .vale.ini, throwed error in Nix
# TODO: was .vale.ini, threw error in Nix
configFile = builtins.toFile "vale.ini" "${hooks.vale.settings.config}";
cmdArgs =
mkCmdArgs
Expand Down
1 change: 1 addition & 0 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ let
hooks = {
shellcheck.enable = true;
nixpkgs-fmt.enable = true;
typos.enable = true;
};
};
all-tools-eval =
Expand Down

0 comments on commit 3166381

Please sign in to comment.