git-hooks.nix
git-hooks.nix copied to clipboard
Seamless integration of https://pre-commit.com git hooks with Nix.
I have to set `ormolu.defaultExtensions` in `flake.nix` to use `ImportQualifiedPost` in my files, even though invoking Fourmolu manually does not require such since it reads the Cabal files. This seems...
To fix #168
Steps to reproduce: With the following `flake.nix`: ```nix { description = "Testing pre-commits"; inputs = { flake-utils = { type = "github"; owner = "numtide"; repo = "flake-utils"; ref =...
`pre-commit install -c $PATH` allows to set a custom config path, which seems better than littering the worktree
Tackles #196. ### Tasks - [x] Move hook settings from `options.settings.` to `options.hooks..settings` - [x] Add `package` to the hook module - [x] Add default packages to each hook (see...
This PR adds `setting.black.flags` making the `black` hook more configurable. Default is no flags. All options are listed [here](https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#command-line-options), it is documented in the nix option. I first thought about...
This PR adds almost all non-deprecated hooks from the [original pre-commit-hooks repository](https://github.com/pre-commit/pre-commit-hooks/). Two of these hooks were asked for in https://github.com/cachix/pre-commit-hooks.nix/issues/31 by @PierreR and workarounds have been proposed, like writing...
is the project's homepage.