Skip to content

Commit 01f55c7

Browse files
authored
chore: Updates to pre-commit hook (#228)
- Add uv.lock generation - Add commitzen for conventionalcommits - Add gitleaks - Ran auto-update
1 parent e0c625a commit 01f55c7

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.pre-commit-config.yaml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
# Pre-commit standard hooks (general file cleanup)
55
# ===============================================
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v4.6.0
7+
rev: v5.0.0
88
hooks:
99
- id: trailing-whitespace # Removes extra whitespace at the end of lines
1010
- id: end-of-file-fixer # Ensures files end with a newline
@@ -24,7 +24,7 @@ repos:
2424

2525
# YAML files
2626
- repo: https://github.com/lyz-code/yamlfix
27-
rev: 1.16.1
27+
rev: 1.17.0
2828
hooks:
2929
- id: yamlfix
3030

@@ -56,7 +56,27 @@ repos:
5656
- repo: https://github.com/astral-sh/ruff-pre-commit
5757
rev: v0.12.0
5858
hooks:
59-
- id: ruff # Linter: applies auto-fixable linting rules
59+
- id: ruff
6060
args: [--fix, --exit-zero] # Apply fixes, and exit with 0 even if files were modified
61-
- id: ruff-format # Formatter: similar to Black, handles consistent code style
62-
args: [] # Check formatting, but do not auto-fix during commit; fail if not formatted
61+
exclude: ^src/a2a/grpc/
62+
- id: ruff-format
63+
exclude: ^src/a2a/grpc/
64+
65+
# Keep uv.lock in sync
66+
- repo: https://github.com/astral-sh/uv-pre-commit
67+
rev: 0.7.13
68+
hooks:
69+
- id: uv-lock
70+
71+
# Commitzen for conventional commit messages
72+
- repo: https://github.com/commitizen-tools/commitizen
73+
rev: v4.8.3
74+
hooks:
75+
- id: commitizen
76+
stages: [commit-msg]
77+
78+
# Gitleaks
79+
- repo: https://github.com/gitleaks/gitleaks
80+
rev: v8.27.2
81+
hooks:
82+
- id: gitleaks

0 commit comments

Comments
 (0)