Add nixpkgs-fmt pre-commit hook

This commit is contained in:
Dave Gallant
2021-05-30 23:00:39 -04:00
parent 8498968acc
commit 9092b371fe
9 changed files with 81 additions and 60 deletions

View File

@@ -1,12 +1,13 @@
let
nix-pre-commit-hooks = import (builtins.fetchTarball
"https://github.com/cachix/pre-commit-hooks.nix/tarball/master");
in {
in
{
pre-commit-check = nix-pre-commit-hooks.run {
src = ./.;
hooks = {
shellcheck.enable = true;
nixfmt.enable = true;
nixpkgs-fmt.enable = true;
};
};
}