Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ use nix
- [commitizen](https://github.com/commitizen-tools/commitizen)
- [convco](https://github.com/convco/convco)
- [forbid-new-submodules](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/forbid_new_submodules.py)
- [gitleaks](https://github.com/gitleaks/gitleaks)
- [gitlint](https://github.com/jorisroovers/gitlint)
- [gptcommit](https://github.com/zurawiki/gptcommit)
- [no-commit-to-branch](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/no_commit_to_branch.py)
Expand Down
8 changes: 8 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2929,6 +2929,14 @@ lib.escapeShellArgs (lib.concatMap (ext: [ "--ghc-opt" "-X${ext}" ]) hooks.fourm
package = tools.fprettify;
entry = "${hooks.fprettify.package}/bin/fprettify";
};
gitleaks = {
name = "gitleaks";
description = "Find secrets with Gitleaks";
entry = lib.getExe tools.gitleaks;
args = [ "git" "-v" ];
always_run = true;
stages = [ "post-commit" ];
};
gitlint = {
name = "gitlint";
description = "Linting for your git commit messages";
Expand Down
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
, flake-checker ? null
, fprettify
, git-annex
, gitleaks
, gitlint
, gptcommit ? null
, hadolint
Expand Down Expand Up @@ -143,6 +144,7 @@ in
elixir
flake-checker
fprettify
gitleaks
gitlint
go
go-tools
Expand Down