Setup simple git commit hooks.
This commit is contained in:
parent
294ea37058
commit
bd89cf5733
5 changed files with 88 additions and 2 deletions
11
shell.nix
Normal file
11
shell.nix
Normal 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;}
|
Loading…
Add table
Add a link
Reference in a new issue