Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ use nix
- [end-of-file-fixer](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/end_of_file_fixer.py)
- [fix-byte-order-marker](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/fix_byte_order_marker.py)
- [headache](https://github.com/frama-c/headache)
- [keep-sorted](https://github.com/google/keep-sorted)
- [mixed-line-endings](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/mixed_line_ending.py)
- [mkdocs-linkcheck](https://github.com/byrnereese/linkchecker-mkdocs)
- [openapi-spec-validator](https://github.com/python-openapi/openapi-spec-validator)
Expand Down
8 changes: 8 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3161,6 +3161,14 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
end'
'';
};
keep-sorted =
{
name = "keep-sorted";
description = "Language-agnostic formatter that sorts lines between two markers in a larger file.";
types = [ "text" ];
package = tools.keep-sorted;
entry = "${hooks.keep-sorted.package}/bin/keep-sorted";
};
latexindent =
{
name = "latexindent";
Expand Down
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
, hlint
, hpack
, html-tidy
, keep-sorted
, luaPackages
, lua-language-server
, lychee
Expand Down Expand Up @@ -150,6 +151,7 @@ in
hlint
hpack
html-tidy
keep-sorted
lychee
mdformat
mdl
Expand Down