Skip to content

Commit 734d6e7

Browse files
committed
fix: devShell name, hooks packages, enabled groups
1 parent 0fe2242 commit 734d6e7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

flake.nix

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
}: let
8585
check = self.checks.${system}.pre-commit-check;
8686
in {
87-
pure = let
87+
default = let
8888
editableOverlay =
8989
workspace.mkEditablePyprojectOverlay {
9090
root = "$REPO_ROOT";
@@ -108,9 +108,11 @@
108108
]
109109
);
110110

111-
virtualenv = editablePythonSet.mkVirtualEnv "proselint-env" workspace.deps.all;
111+
virtualenv = editablePythonSet.mkVirtualEnv "proselint-env" {proselint = ["test" "dev"];};
112112
in
113113
pkgs.mkShell {
114+
buildInputs = check.enabledPackages;
115+
114116
packages = [
115117
virtualenv
116118
pkgs.uv
@@ -124,10 +126,10 @@
124126

125127
shellHook =
126128
''
129+
export REPO_ROOT=$(git rev-parse --show-toplevel)
127130
unset PYTHONPATH
128-
export REPO_ROOT=$(git rev-parse --show-toplevel)
129131
''
130-
++ check.shellHook;
132+
+ check.shellHook;
131133
};
132134
});
133135

0 commit comments

Comments
 (0)