replace pre-commit with shell script

This saves one flake input and some python dependencies
This commit is contained in:
Jörg Thalheim
2023-08-03 14:25:26 +02:00
parent 7fa6808478
commit 930923512c
5 changed files with 56 additions and 142 deletions

View File

@@ -7,7 +7,6 @@
}: {
devShells.default = pkgs.mkShell {
inputsFrom = [
config.pre-commit.devShell
config.treefmt.build.devShell
];
packages = [
@@ -15,6 +14,9 @@
self'.packages.tea-create-pr
self'.packages.merge-after-ci
];
shellHook = ''
ln -sf ../../scripts/pre-commit .git/hooks/pre-commit
'';
};
};
}