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 @@ -443,6 +443,7 @@ hooks](modules/pre-commit.nix).

### LaTeX

- [badness](https://github.com/jolars/badness)
- [chktex](https://www.nongnu.org/chktex/)
- [lacheck](https://ctan.org/pkg/lacheck)
- [latexindent](https://github.com/cmhughes/latexindent.pl)
Expand Down
18 changes: 18 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2696,6 +2696,24 @@ in
"${binPath} ${hooks.autoflake.settings.flags}";
types = [ "python" ];
};
badness-format =
{
name = "badness-format";
description = "Format LaTeX and BibTeX files with badness.";
package = tools.badness;
entry = "${lib.getExe hooks.badness-format.package} format --force-exclude";
files = "\\.(tex|sty|cls|dtx|ins|bib)$";
require_serial = true;
};
badness-lint =
{
name = "badness-lint";
description = "Lint LaTeX and BibTeX files with badness.";
package = tools.badness;
entry = "${lib.getExe hooks.badness-lint.package} lint --force-exclude";
files = "\\.(tex|sty|cls|dtx|ins|bib)$";
require_serial = true;
};
biome =
{
name = "biome";
Expand Down
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
, air-formatter
, alejandra
, ansible-lint
, badness ? placeholder "badness"
, biome
, cabal2nix
, callPackage
Expand Down Expand Up @@ -136,6 +137,7 @@ in
action-validator
alejandra
ansible-lint
badness
beautysh
biome
cabal2nix
Expand Down