make git-hooks opt-in

pre-commit hook break git commits and are disruptive.
Therefore people that want to enable this feature, should enable it locally instead.
I.e. treefmt will also check untracked files that are not meant for the current commit.
This commit is contained in:
Jörg Thalheim
2024-05-27 10:58:55 +02:00
parent 6e9f1515d3
commit f46fd3ace6
4 changed files with 29 additions and 28 deletions

View File

@@ -21,8 +21,6 @@
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
git-hooks.url = "github:fricklerhandwerk/git-hooks";
git-hooks.flake = false;
};
outputs =