-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
40 lines (33 loc) · 1.03 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
40 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.3.0
hooks:
- id: conventional-pre-commit
- repo: https://github.com/PyCQA/isort
rev: 7.0.0
hooks:
- id: isort
name: isort (with black profile)
args: ["--profile=black"]
- repo: https://github.com/psf/black
rev: 25.12.0
hooks:
- id: black
language_version: python3
args: ["--line-length=88"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
- id: ruff
args: ["--fix"] # 自动修正可修复的问题
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
# 去掉行尾多余空格/Tab
- id: trailing-whitespace
# 保证文件末尾有且仅有一个换行符(EOF)
- id: end-of-file-fixer
# 检查 YAML 语法合法性(常用于 CI/Helm/docker-compose 等)
- id: check-yaml
# 禁止提交超大文件(默认 > 500 kB)
- id: check-added-large-files