Skip to content

Commit f2c7f80

Browse files
authored
Update pre-commit hooks (#48)
1 parent eb4244b commit f2c7f80

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
1+
---
2+
ci:
3+
autoupdate_schedule: monthly
14
repos:
5+
- repo: meta
6+
hooks:
7+
- id: check-useless-excludes
28
- repo: https://github.com/pre-commit/pre-commit-hooks
39
rev: v5.0.0
410
hooks:
11+
- id: check-added-large-files
512
- id: check-executables-have-shebangs
613
- id: check-merge-conflict
714
- id: check-toml
815
- id: check-vcs-permalinks
916
- id: check-yaml
1017
- id: debug-statements
18+
- id: detect-private-key
1119
- id: end-of-file-fixer
20+
- id: fix-byte-order-marker
21+
- id: trailing-whitespace
1222
- id: mixed-line-ending
1323
args: [--fix, lf]
14-
- id: trailing-whitespace
15-
- repo: https://github.com/astral-sh/ruff-pre-commit
16-
rev: "v0.12.1"
17-
hooks:
18-
- id: ruff
19-
args: [--fix, --exit-non-zero-on-fix]
2024
- repo: https://github.com/codespell-project/codespell
2125
rev: v2.4.1
2226
hooks:
@@ -28,9 +32,10 @@ repos:
2832
files: \.(yaml|yml)$
2933
types: [file, yaml]
3034
entry: yamllint --strict
31-
- repo: https://github.com/psf/black
32-
rev: 25.1.0
35+
- repo: https://github.com/astral-sh/ruff-pre-commit
36+
rev: v0.12.0
3337
hooks:
34-
- name: black
35-
id: black
36-
args: ["--line-length", "79"]
38+
- id: ruff-format
39+
alias: ruff
40+
- id: ruff-check
41+
alias: ruff

0 commit comments

Comments
 (0)