Setup simple git commit hooks.

This commit is contained in:
CronyAkatsuki 2025-02-23 17:40:10 +01:00
parent 294ea37058
commit bd89cf5733
5 changed files with 88 additions and 2 deletions

11
shell.nix Normal file
View file

@ -0,0 +1,11 @@
{
pkgs ? import <nixpkgs> {},
pre-commit-hooks,
...
}: let
pre-commit-check = pre-commit-hooks.lib.${pkgs.system}.run {
src = ".";
hooks = {alejandra.enable = true;};
};
in
pkgs.mkShell {inherit (pre-commit-check) shellHook;}