-
-
Notifications
You must be signed in to change notification settings - Fork 630
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
23 lines (23 loc) · 756 Bytes
/
.pre-commit-config.yaml
File metadata and controls
23 lines (23 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: debug-statements
exclude: 'tools/|(pypinyin/(legacy/|phonetic_symbol.py))'
- id: double-quote-string-fixer
exclude: 'pypinyin/(legacy/|phonetic_symbol.py)'
- id: end-of-file-fixer
exclude: '.bumpversion.cfg|.*.json'
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/pycqa/flake8
rev: 7.2.0
hooks:
- id: flake8
exclude: 'tools|pypinyin/(legacy/|phonetic_symbol.py)|(docs/conf.py)'
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: 'v0.812'
# hooks:
# - id: mypy
# files: 'pypinyin/'