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

This is the relevant flake.parts code: ```nix # SPDX-FileCopyrightText: 2023 Sefa Eyeoglu # # SPDX-License-Identifier: GPL-3.0-or-later { perSystem = { config, lib, pkgs, ... }: { pre-commit.settings = { excludes...

bug
flake

Hi everyone! When I add `cargo-check.enable = true;` my `nix flake check` invocation fails with the following message: ``` error: builder for '/nix/store/z1malgk1gx5qwpxv2pbb9ri1scglf56n-pre-commit-run.drv' failed with exit code 1; last 10...

bug
flake

Currently, `default_stages` controls two things: 1. The stages that each hook supports by default. As a result, all of our hooks don't even support the `manual` stage, unless one overrides...

enhancement

I have included a different project into my flake that had this project as a input & now my flake lock has exploded with new things I need to audit....

question

This PR will add additional cargo-hooks (cargo-bench, cargo-doc and cargo-test) as well as additional options. I did not implement all possible options, because e.g. `--quiet` is not really useful in...

new-hook

This adds support for the [TruffleHog](https://github.com/trufflesecurity/trufflehog) secrets scanner. It's presently not nearly as configurable as I'd like, or as neat as I'd like, but hopefully I can take it out...

new-hook

Here you can see a real world usage of multiple invocations to the same hook: https://github.com/OCA/sale-workflow/blob/3016b43cef41a162c423be3322f2a3bc67447001/.pre-commit-config.yaml#L145-L156 They're essentially splitting pylint hook in 2: - once to run optional checks and...

enhancement

`modules/hooks.nix` is a difficult-to-maintain 3,500-line monolith. Keeping one file per hook (or group of hooks implemented by a package) would make it a lot easier to work with.

tech-debt

From the folks at [Astral.sh](https://astral.sh/) there's already a hook for `ruff` in git-hooks.nix. We could be adding [uv](https://github.com/astral-sh/uv), which is currently in [`nixpkgs-unstable`](https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/uv/uv/package.nix). --- From the README in `uv` repo:...

enhancement
new-hook