Commit b4dfe821c479

Vincent Demeester <vincent@sbr.pm>
2026-01-05 14:39:39
chore(dev): Switch to pre-push hooks and ruff-only Python linting
- Enable faster commits by deferring validation to push time - Reduce tool redundancy by removing flake8 in favor of ruff - Improve developer experience with less intrusive workflow Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 28f0135
Changed files (1)
flake.nix
@@ -204,6 +204,11 @@
       checks = forAllSystems (system: {
         pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run {
           src = ./.;
+          # Run hooks on pre-push instead of pre-commit for less intrusive workflow
+          default_stages = [
+            "manual"
+            "pre-push"
+          ];
           hooks = {
             # go
             gofmt.enable = true;
@@ -213,7 +218,6 @@
             nixfmt-rfc-style.enable = true;
             # statix.enable = true;
             # python
-            flake8.enable = true;
             ruff.enable = true;
             # shell
             shellcheck.enable = true;