Skip to content

Commit a36ed39

Browse files
authored
Improve pre-commit config (#857)
1 parent c37b1d4 commit a36ed39

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.pre-commit-config.yaml

+14-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ exclude: ^(tests/data)
1616
default_language_version:
1717
python: python3.10
1818
repos:
19+
##### Meta #####
20+
- repo: meta
21+
hooks:
22+
- id: check-useless-excludes
23+
- id: check-hooks-apply
24+
25+
1926
##### Style / Misc. #####
2027
- repo: https://github.com/pre-commit/pre-commit-hooks
2128
rev: v5.0.0
@@ -28,31 +35,37 @@ repos:
2835
- id: check-toml
2936
- id: end-of-file-fixer
3037
- id: trailing-whitespace
38+
3139
- repo: https://github.com/crate-ci/typos
32-
rev: v1
40+
rev: v1.30.2
3341
hooks:
3442
- id: typos
3543
args: [--force-exclude]
44+
3645
- repo: https://github.com/asottile/pyupgrade
3746
rev: v3.19.1
3847
hooks:
3948
- id: pyupgrade
49+
4050
- repo: https://github.com/astral-sh/ruff-pre-commit
4151
rev: v0.9.10
4252
hooks:
4353
- id: ruff
4454
args: [--fix]
4555
- id: ruff-format
4656

57+
4758
##### Security #####
4859
- repo: https://github.com/gitleaks/gitleaks
4960
rev: v8.24.0
5061
hooks:
5162
- id: gitleaks
63+
5264
- repo: https://github.com/woodruffw/zizmor-pre-commit
5365
rev: v1.4.1
5466
hooks:
5567
- id: zizmor
68+
5669
- repo: https://github.com/PyCQA/bandit
5770
rev: 1.8.3
5871
hooks:

0 commit comments

Comments
 (0)