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

Without this option, `pre-commit run selene --all-files` prints a summary for every file which creates lots of noise.

As with the Rust situation, `gotest` fails in pre-commit drvs because it can't grab dependencies. Workaround: ```nix { config, ... }: let deps = (pkgs.buildGoModule { name = "go-deps"; src...

Adds a simple hook for https://github.com/kynan/nbstripout. Requires the use of nixpkgs-unstable because nbstriput is broken without https://github.com/NixOS/nixpkgs/commit/0090bf428c629c4b516fab58fef41ec4dce11e06.

Hey, I would want to add support for https://github.com/Yelp/detect-secrets into devenv.

This PR contains the following updates: | Update | Change | |---|---| | lockFileMaintenance | All locks refreshed | 🔧 This Pull Request updates lock files to use the latest...

Given the following `flake.nix`: ``` { inputs.pre-commit-hooks.url = "github:cachix/git-hooks.nix"; outputs = { self, nixpkgs, ... }@inputs: let supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; in...

It always errors with: ``` + /nix/store/jyxapkyfpi53p30x9kg4aqj66195bj43-opentofu-1.8.4/bin/tofu validate examples/nix-store-path ╷ │ Error: Module not installed │ │ on examples/nix-store-path/main.tf line 36: │ 36: module "nixos_deploy_document" { │ │ This module...

Because `node_modules` is in `.gitignore`, Nix doesn't copy it to the check environment. How can I use plugins within ESLint, which need to be loaded from `node_modules`? Using `./node_modules/.bin/eslint` as...