forked from fediversity/fediversity
kill git hook
This commit is contained in:
parent
f23c93dd2a
commit
f7d050a3a6
1 changed files with 0 additions and 18 deletions
18
flake.nix
18
flake.nix
|
@ -42,23 +42,6 @@
|
||||||
{
|
{
|
||||||
formatter = pkgs.nixfmt-rfc-style;
|
formatter = pkgs.nixfmt-rfc-style;
|
||||||
|
|
||||||
pre-commit.settings.hooks =
|
|
||||||
let
|
|
||||||
## Add a directory here if pre-commit hooks shouldn't apply to it.
|
|
||||||
optout = [
|
|
||||||
"npins"
|
|
||||||
"launch/.terraform"
|
|
||||||
];
|
|
||||||
excludes = map (dir: "^${dir}/") optout;
|
|
||||||
addExcludes = lib.mapAttrs (_: c: c // { inherit excludes; });
|
|
||||||
in
|
|
||||||
addExcludes {
|
|
||||||
nixfmt-rfc-style.enable = true;
|
|
||||||
deadnix.enable = true;
|
|
||||||
trim-trailing-whitespace.enable = true;
|
|
||||||
shellcheck.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
packages = [
|
packages = [
|
||||||
pkgs.nil
|
pkgs.nil
|
||||||
|
@ -71,7 +54,6 @@
|
||||||
impureEnvVars = [ "DEPLOYMENT" ];
|
impureEnvVars = [ "DEPLOYMENT" ];
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
shellHook = config.pre-commit.installationScript;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue