-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (31 loc) · 1.08 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (31 loc) · 1.08 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
ci:
autofix_commit_msg: "style: auto fix by pre-commit hooks"
autofix_prs: false
autoupdate_branch: main
autoupdate_schedule: monthly
autoupdate_commit_msg: "chore: auto update by pre-commit hooks"
repos:
- repo: https://github.com/pycqa/flake8
rev: 7.2.0
hooks:
- id: flake8 # 代码风格检查
args: ["--max-line-length=120", "--extend-ignore=W503,E203"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.16.0
hooks:
- id: mypy # mypy 类型检查
args: ["--install-types", "--non-interactive", "--ignore-missing-imports"]
additional_dependencies: ["types-PyYAML", "azure-ai-inference", "dashscope", "google-genai", "ollama"]
- repo: https://github.com/psf/black
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 6.0.1
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # 版本号
hooks:
- id: trailing-whitespace # 删除行尾空格