uninstall pre-commit-hooks correctly

This commit is contained in:
Moritz Böhme 2022-12-01 11:56:51 +01:00
parent 7a82f7475d
commit dee2a25d77
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}";
pythonVersions = map mkPython (pkgs.lib.lists.range minVersion maxVersion);
mkDevShell = version: pkgs.mkShell {
inherit (pre-commit-hooks.lib."${system}".run { src = ./.; }) shellHook;
buildInputs = [ pkgs.${version} pkgs.poetry ];
};
addPreCommit = shell: shell.overrideAttrs (old: {