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'd like to test the build of a flake package as part of a hook so I tried calling `nix build` from inside it which breaks horribly: ```log pre-commit-run> Build...

Recently announced, could let me replace my use of hpack! :D https://github.com/tfausak/cabal-gild

enhancement
new-hook

I added a couple of options to the `yamllint` hook, as so far it was only possible to pass a path to the configuration file. In some comments, I also...

Fixes #126. Fixes #452. Fixes #455. If a Rust project has dependencies, cargo-clippy and cargo check will fail in the pre-commit-check derivation. This adds a `settings.rust.check.cargoDeps` ~and `settings.runtimeDeps`~ option, which...

enhancement
flake

A highly opinionated workflow doesn't work for all projects, especially ones that already have a long history, notably NixOS/nix. Some people hate pre-commit with a passion. These things should not...

When using `github:nixos/nixpkgs?rev=758f7e454abb3752eee99414a923223abd54e425` ( https://releases.nixos.org/nixos/23.11-small/nixos-23.11.2423.758f7e454abb), the current version of ansible-lint from pre-commit-hooks at the most recent commit (44493e2b3c3ebcd39a9947e9ed9f2c2af164ec4c) will fail with ``` pre-commit run --all-files ansible-lint.............................................................Failed - hook id: ansible-lint...

Requesting adding the "shellharden" tool: . Not sure I'll have enough time to do it myself

enhancement
new-hook

Add support for [yamlfmt]. I mostly copy/pasted from yamllint. So, it might be incomplete, but it seems to be doing what I expect it to do. [yamlfmt]: https://github.com/google/yamlfmt

This flake depends on two versions of nixpkgs: `nixpkgs-unstable` & `nixos-23.05`. From what I can tell, it uses unstable as a fallback for stable. However, this means that both versions...

tech-debt

Hello there, I'm running various `flake.nix` inside a large monorepo, and each of these `flake.nix` configures a pre-commit-hook for that specific sub-project of the monorepo. I would like the hook...