git-hooks.nix
git-hooks.nix copied to clipboard
Seamless integration of https://pre-commit.com git hooks with Nix.
Scripts maintained from within a `flake.nix` file, e.g. with `.writers.writeBashBin` will not be checked by shellcheck as filename based matching does not pick them up. shellcheck supports reading code from...
In the shell code, if the user removed all hooks, uninstall the hook.
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.[View this repository on the Mend.io Web Portal](https://developer.mend.io/github/cachix/git-hooks.nix). ## Awaiting Schedule These updates are awaiting...
Adds a hint to the documentation that the built-in `terraform-format` hook uses OpenTofu under the hood.
Hello, I have added the hook for typstyle, but the entry was missing the `-i`. This PR should fix it, I have tested it against a typst project of mine...
Elixir Mix tests and formatting work, except in `flake check`. As @nifoc noted [here](https://github.com/cachix/git-hooks.nix/issues/292#issuecomment-1646809825_ ): > However, `nix flake check` does not work, because: > > - Dependencies are not...
This happens when running `nix flake check`. ``` golangci-lint............................................................Failed - hook id: golangci-lint - exit code: 3 WARN Failed to discover go env: failed to run 'go env -json GOCACHE...
``` gotest...................................................................Failed - hook id: gotest - exit code: 1 --- FAIL: TestCreateFixture (0.00s) data_test.go:11: Error Trace: /build/src/cmd/db-creator/data_test.go:11 Error: Received unexpected error: sqlite: check foreign_keys pragma: reading schema information Binary...
[Creating new hooks](https://pre-commit.com/#creating-new-hooks) allows for `args` and `exclude_types`. In particular, I wanted to configure `shfmt` to not force the `-s` flag. I changed the default configuration for `shfmt` to have...
The existing behavior of `pre-commit-hooks.nix` is to use the `pre-commit` phase of pre-commit hooks, unless your `default_phases = [ "manual" ]`. On further inspection I found that it has to...