uninstall pre-commit-hooks correctly

main
Moritz Böhme 2022-12-01 11:56:51 +01:00
parent 78136c27a0
commit 8b8dac8939
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
/nix/store/0c3460gjwiqhy7j000ckyrk4ypcnsmlw-pre-commit-config.json /nix/store/kz586m4ykwc1s25dkkmkhj57l2bil858-pre-commit-config.json

View File

@ -17,6 +17,7 @@
mkPython = version: "python3${toString version}"; mkPython = version: "python3${toString version}";
pythonVersions = map mkPython (pkgs.lib.lists.range minVersion maxVersion); pythonVersions = map mkPython (pkgs.lib.lists.range minVersion maxVersion);
mkDevShell = version: pkgs.mkShell { mkDevShell = version: pkgs.mkShell {
inherit (pre-commit-hooks.lib."${system}".run { src = ./.; }) shellHook;
buildInputs = [ pkgs.${version} pkgs.poetry ]; buildInputs = [ pkgs.${version} pkgs.poetry ];
}; };
addPreCommit = shell: shell.overrideAttrs (old: { addPreCommit = shell: shell.overrideAttrs (old: {