services-flake/dev/nix/pre-commit.nix
shivaraj-bh 788ef28769 feat: add pre-commit-hooks.nix, enforcing conventional commits
enable treefmt and commitizen in pre-commit-hooks.nix

Along with this, we also:

* bump: update nixpkgs of dev flake for pre-commit-hooks.nix to work

the older version didn't have cljfmt
2024-03-06 22:29:38 +05:30

15 lines
233 B
Nix

{ ... }:
{
perSystem = { pkgs, lib, ... }: {
pre-commit = {
check.enable = true;
settings = {
hooks = {
treefmt.enable = true;
commitizen.enable = true;
};
};
};
};
}