git-hooks.nix
git-hooks.nix copied to clipboard
Interop with mkDerivation's checkPhase?
Follow-up to https://github.com/cachix/pre-commit-hooks.nix/issues/277#issuecomment-1522513159.
It seems that the best place to configure a make-based project's tests is via mkDerivation's checkPhase.
It's unclear how best to interoperate between pre-commit hooks and checkPhase though. I think I'd like to have package tests run in a pre-commit hook. Maybe also flake checks. pre-commit.check.enable seems backwards IIUC. pre-commit should run flake stuff, not the other way around.
pre-commit run -a?