flake/pre-commit: use treefmt in git hook

This commit is contained in:
Matt Sturgeon 2024-07-08 16:03:57 +01:00 committed by GaetanLepage
parent 8c44124a1f
commit 2583f54225

View file

@ -31,14 +31,7 @@
// lib.optionalAttrs (inputs.git-hooks ? flakeModule) {
pre-commit = {
settings.hooks = {
nixfmt = {
enable = true;
package = fmt;
};
statix = {
enable = true;
excludes = [ "plugins/lsp/language-servers/rust-analyzer-config.nix" ];
};
treefmt.enable = true;
typos.enable = true;
};
};