Skip to content

Commit

Permalink
feat: some pretty standard pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
huuff committed Sep 21, 2024
1 parent fd7423e commit 600f1c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@
checks = {
pre-commit-check = pre-commit.lib.${system}.run {
src = ./.;
# TODO add the main hooks like gitleaks and check large files
# TODO some commit msg linting too
hooks = {
check-merge-conflicts.enable = true;
check-added-large-files.enable = true;

gitleaks = {
name = "gitleaks";
enable = true;
Expand All @@ -62,6 +64,8 @@
statix.enable = true;
deadnix.enable = true;
nil.enable = true;

actionlint.enable = true;
};
};

Expand Down

0 comments on commit 600f1c0

Please sign in to comment.