forked from fediversity/fediversity
fix root test/hook
This commit is contained in:
parent
e7887b2833
commit
46f34d1188
2 changed files with 7 additions and 4 deletions
|
|
@ -9,7 +9,9 @@ let
|
||||||
pre-commit-check =
|
pre-commit-check =
|
||||||
(import "${git-hooks}/nix" {
|
(import "${git-hooks}/nix" {
|
||||||
inherit nixpkgs system;
|
inherit nixpkgs system;
|
||||||
gitignore-nix-src = gitignore;
|
gitignore-nix-src = {
|
||||||
|
lib = import gitignore { inherit lib; };
|
||||||
|
};
|
||||||
}).run
|
}).run
|
||||||
{
|
{
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
@ -18,7 +20,7 @@ let
|
||||||
## Add a directory here if pre-commit hooks shouldn't apply to it.
|
## Add a directory here if pre-commit hooks shouldn't apply to it.
|
||||||
optout = [
|
optout = [
|
||||||
"npins"
|
"npins"
|
||||||
"**/.terraform"
|
".terraform"
|
||||||
];
|
];
|
||||||
excludes = map (dir: "^${dir}/") optout;
|
excludes = map (dir: "^${dir}/") optout;
|
||||||
addExcludes = lib.mapAttrs (_: c: c // { inherit excludes; });
|
addExcludes = lib.mapAttrs (_: c: c // { inherit excludes; });
|
||||||
|
|
@ -36,6 +38,9 @@ in
|
||||||
shell = pkgs.mkShellNoCC {
|
shell = pkgs.mkShellNoCC {
|
||||||
inherit (pre-commit-check) shellHook;
|
inherit (pre-commit-check) shellHook;
|
||||||
buildInputs = pre-commit-check.enabledPackages;
|
buildInputs = pre-commit-check.enabledPackages;
|
||||||
|
packages = [
|
||||||
|
pkgs.nixfmt-rfc-style
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
tests = {
|
tests = {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,5 @@ refactor:
|
||||||
|
|
||||||
test:
|
test:
|
||||||
- services tests
|
- services tests
|
||||||
- root test
|
|
||||||
- root hook
|
|
||||||
- secret shell
|
- secret shell
|
||||||
- ci
|
- ci
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue