diff --git a/.forgejo/workflows/lint.yaml b/.forgejo/workflows/lint.yaml index 948d0f1..4b58ae7 100644 --- a/.forgejo/workflows/lint.yaml +++ b/.forgejo/workflows/lint.yaml @@ -8,4 +8,4 @@ jobs: - uses: actions/checkout@v3 - name: Run pre-commit on all files - run: nix-shell --run 'pre-commit run --all-files --show-diff-on-failure' -A shells.pre-commit ./. + run: nix-shell --run 'pre-commit run --all-files --hook-stage pre-push --show-diff-on-failure' -A shells.pre-commit ./. diff --git a/default.nix b/default.nix index b68440f..c0981fe 100644 --- a/default.nix +++ b/default.nix @@ -45,12 +45,25 @@ let src = ./.; hooks = { - # Nix Hooks - statix.enable = true; - deadnix.enable = true; - nixfmt-rfc-style.enable = true; + statix = { + enable = true; + stages = [ "pre-push" ]; + settings.ignore = [ + "lon.nix" + "**/npins" + ]; + }; + + deadnix = { + enable = true; + stages = [ "pre-push" ]; + }; + + nixfmt-rfc-style = { + enable = true; + stages = [ "pre-push" ]; + }; - # Misc Hooks commitizen.enable = true; }; };