Skip to content

Commit 0dc2a1f

Browse files
committed
fixed pre-commit yaml
1 parent b342021 commit 0dc2a1f

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

.pre-commit-config.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
1-
# .pre-commit-config.yaml
1+
ci:
2+
autoupdate_commit_msg: "chore: update pre-commit hooks"
3+
autofix_commit_msg: "style: pre-commit fixes"
4+
25
repos:
36
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.0.1
7+
rev: v5.0.0
58
hooks:
69
- id: trailing-whitespace
710
- id: end-of-file-fixer
811
- id: check-yaml
912
- id: check-json
1013
- id: check-added-large-files
1114
args: ['--maxkb=500'] # set the max file size to 500KB
15+
- id: check-case-conflict
16+
- id: check-merge-conflict
17+
- id: check-symlinks
18+
# - id: debug-statements
19+
- id: mixed-line-ending
1220

1321
# - repo: https://github.com/psf/black
1422
# rev: 25.1.0 # Use the latest stable version
@@ -24,3 +32,22 @@ repos:
2432
# rev: 6.0.0 # Use the latest stable version
2533
# hooks:
2634
# - id: isort
35+
36+
# - repo: https://github.com/astral-sh/ruff-pre-commit
37+
# rev: "v0.11.5"
38+
# hooks:
39+
# # first, lint + autofix
40+
# - id: ruff
41+
# types_or: [python, pyi, jupyter]
42+
# args: ["--fix", "--show-fixes"]
43+
# # then, format
44+
# - id: ruff-format
45+
46+
# - repo: https://github.com/pre-commit/mirrors-mypy
47+
# rev: "v1.15.0"
48+
# hooks:
49+
# - id: mypy
50+
# files: src
51+
# args: []
52+
# additional_dependencies:
53+
# - pytest

0 commit comments

Comments
 (0)