flake/pre-commit: use treefmt in git hook

This commit is contained in:
Matt Sturgeon
2024-07-08 16:24:46 +00:00
committed by GaetanLepage
parent 8c44124a1f
commit 2583f54225
+1 -8
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;
};
};