Skip to content

Commit b76236b

Browse files
committed
Update pre-commit configuration with enhanced validation
- Update pre-commit-hooks to v6.0.0 for latest features - Add commitlint with conventional commit validation - Update gitleaks to v8.28.0 for improved security scanning - Configure default hook types and stages for better workflow - Add minimum pre-commit version requirement (3.0.0) - Enable commit message validation on commit-msg stage
1 parent ac5caee commit b76236b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
---
2+
default_install_hook_types: [pre-commit, pre-push]
3+
default_stages: [pre-commit]
4+
minimum_pre_commit_version: 3.0.0
25
repos:
36
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v5.0.0
7+
rev: v6.0.0
58
hooks:
69
- id: trailing-whitespace
710
- id: end-of-file-fixer
@@ -12,6 +15,13 @@ repos:
1215
- id: mixed-line-ending
1316
args: ['--fix=lf']
1417

18+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
19+
rev: v9.22.0
20+
hooks:
21+
- id: commitlint
22+
stages: [commit-msg]
23+
additional_dependencies: ["@commitlint/config-conventional"]
24+
1525
- repo: local
1626
hooks:
1727
- id: nixfmt
@@ -23,7 +33,7 @@ repos:
2333
files: \.nix$
2434

2535
- repo: https://github.com/gitleaks/gitleaks
26-
rev: v8.25.1
36+
rev: v8.28.0
2737
hooks:
2838
- id: gitleaks
2939
name: gitleaks

0 commit comments

Comments
 (0)