git-hooks.nix icon indicating copy to clipboard operation
git-hooks.nix copied to clipboard

Seamless integration of https://pre-commit.com git hooks with Nix.

Results 132 git-hooks.nix issues
Sort by recently updated
recently updated
newest added

ie., run `nix flake lock` and ensure that no new modifications (unstaged) are made to the `flake.lock` file.

new-hook

As you can see [in the manual](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-fmt.html), there's a `nix fmt` option for flakes. Flakes can indicate what program should be used for formatting code. Flakes that use this project...

enhancement

pre-commit has a few key design decisions to keep users safe 1. hooks are isolated from the current repo 2. direct individual pinning control 3. the pre commit config file...

I believe because of https://github.com/cachix/pre-commit-hooks.nix/commit/e04dd8f275dcdd8ae7a895cd884aa5cc186f82d5, my shell needs to compile 15 minutes on every nixpkgs bump. Also my installed fourmolu version in the shell does not format the same way...

Hey, I exclude a generated `.nix` file from the pre-commit checks, but nevertheless `statix` fails on that file. That's my simplified flakeParts module: ``` { inputs, ... }: { imports...

bug

In a corporate environment, sometimes git (or anything else which requires network access, e.g. `curl`) will not work properly without setting environment variables `all_proxy`, `http_proxy`, `https_proxy` etc. Because this setup...

First off I want to say that I really like this project! I know the name of the project is _pre-commit-hooks_, however I would like to be able to install...

Say I am using the `hpack` hook and I want it to use my version of `hpack` and not the default one. I will do something such as: ```nix tools...

Something like: ```nix { git.hooks.pre-commit.shellcheck.enable = true; git.hooks.push.shellcheck.enable = true; } ``` cc @roberth

enhancement