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

The biggest chore in maintaining this repo is dealing with the command-line arguments. Small typos and missing edge-case handling are common issues and are difficult/tiresome to spot in reviews.

enhancement

This fixes #345, by adding a `configFile` option to change the default (`.pre-commit-config.yaml`) and so enables the parallel usage of devenv and non-devenv maintained pre-commit hooks.

enhancement

fixes: https://github.com/cachix/git-hooks.nix/issues/287

new-hook

I randomly started getting: ``` bug: pre-commit's script is installed in migration mode run `pre-commit install -f --hook-type commit-msg` to fix this ``` unsure where the issue is. I did...

# What is this This make `options.run`'s `readOnly` `true`. And `configFile` and `installStages` will be public so that a customized `run` may use them. # Why is this For instance...

Hi! Here's the options for shellcheck: ``` Usage: shellcheck [OPTIONS...] FILES... -a --check-sourced Include warnings from sourced files -C[WHEN] --color[=WHEN] Use color (auto, always, never) -i CODE1,CODE2.. --include=CODE1,CODE2.. Consider only...

* Call `tflint` on all arguments, rather than just the first * Rename `tflint` wrapper to `terraform_lint` and add `tflint` to `extraPackages` * Drop support for`tflint` < 0.45.0, not packaged...

Since the time `terraform-fmt` wrapper was added to `git-hooks.nix` 5 years ago, both `terraform` and `tofu` now support formatting multiple files. https://github.com/hashicorp/terraform/pull/31286 https://github.com/hashicorp/terraform/pull/28191

Since #415 seems not maintained anymore and it hinders our workflow I've created a simple workaround. The issue is, that `pre-commit` without a `--hook-stage` uses the `commit` stage. Now we...