git-hooks.nix
git-hooks.nix copied to clipboard
fix: add configFile option
This fixes #345, by adding a configFile option to change the default (.pre-commit-config.yaml) and so enables the parallel usage of devenv and non-devenv maintained pre-commit hooks.
- There are a few more
pre-commitcalls inrunthat would need to be adjusted. https://github.com/cachix/git-hooks.nix/blob/6d7586d0d35ccd1e87bb0ffb7c0d38b4cc0fe469/modules/pre-commit.nix#L55-L83 - I'm not sure about the name of the option. We may also need to expose
configFileitself in the future, e.g. #494. MaybeconfigPathwould be better?
@sandydoo ...I am full of work at the moment, but this topic is not forgotten!
This is a make or break option for me at work since I work with pre-existing pre-commit configuration and I can't just delete/.gitignore that. I'm using flakes in about 10 repos that I can just add this tooling for and make my life a bunch easier