-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (32 loc) · 1.15 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
38 lines (32 loc) · 1.15 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
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.3.0
hooks:
- id: flake8 # 代码风格检查
args: ["--max-line-length=120", "--extend-ignore=W503,E203"]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v2.3.0
hooks:
- id: mypy # mypy 类型检查
args: ["--install-types", "--non-interactive", "--ignore-missing-imports"]
additional_dependencies: ["types-PyYAML", "types-pytz", "azure-ai-inference", "dashscope", "google-genai", "ollama"]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.5.1
hooks:
- id: black
args: ["--config=./pyproject.toml"]
- repo: https://github.com/PyCQA/isort
rev: 9.0.0b1
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0 # 版本号
hooks:
- id: trailing-whitespace # 删除行尾空格