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

I can't get `hunspell` to work (keep getting `Can't open affix or dictionary files`), but what would be really great is `aspell` support.

new-hook

Done. > A module to import into flakes based on flake-parts. > Makes integration into a flake easy and tidy. > See https://github.com/hercules-ci/flake-parts#readme

Hello, I have a `.markdownlint.json` file that relax some rules for markdown linting. It is automatically picked by default by markdownlint-cli in a normal setting but here it doesn't seem...

I think I need `--plugin-search-dir` to use `prettier-plugin-svelte`.

https://errata-ai.gitbook.io/vale/

What I did --- Created a new repository ``` git init nix flake init ``` then replaced the `flake.nix` with the [example flake.nix](https://github.com/cachix/pre-commit-hooks.nix#nix-flakes-support) and replaced the `nixpkgs-fmt` hook with `hunspell`....

When using `nix-pre-commit-hooks`, `/nix/store/...python3.9-pre-commit-2.17.0/bin` is added to the end of PATH, possibly by [this](https://github.com/cachix/pre-commit-hooks.nix/blob/521a524771a8e93caddaa0ac1d67d03766a8b0b3/modules/pre-commit.nix#L322). This causes the wrong `pre-commit` to be used if you already have one in, say, `$HOME/.local/bin`.

How can I overwrite in a downstream flake.nix nixpkgs which is normally done like ``inputs.nixpkgs.follows = "nixpkgs";``?

I'm currently trying to set up a hook for a flake to run treefmt only on changed files. With flakes nix always removes the `.git` directory before even starting the...

In my project setup, `/default.nix` file enables rustfmt and Clippy pre-commit hooks but Rust sources are located in `/rust/`, so both Clippy and rustfmt fail with "Could not find Cargo.toml"...

enhancement