flake: remove pre-commit from checks output

This commit is contained in:
Matt Sturgeon 2024-09-07 00:27:24 +01:00
parent 86a4021597
commit 5c929a161f
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -18,6 +18,7 @@
lib.optionalAttrs (inputs.treefmt-nix ? flakeModule) {
treefmt.config = {
projectRootFile = "flake.nix";
flakeCheck = true;
programs = {
isort.enable = true;
@ -58,6 +59,9 @@
}
// lib.optionalAttrs (inputs.git-hooks ? flakeModule) {
pre-commit = {
# We have a treefmt check already, so this is redundant.
check.enable = false;
settings.hooks = {
treefmt.enable = true;
typos.enable = true;