-
Notifications
You must be signed in to change notification settings - Fork 108
/
.pre-commit-config.yaml
32 lines (32 loc) · 992 Bytes
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/beichenzhizuoshi/pre-commit-hooks
rev: v1.0.2
hooks:
# automatically convert file encoding before submitting file
- id: transform-encoding
- id: chinese-transform-encoding
- id: crlf-to-lf
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.4
hooks:
- id: clang-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: double-quote-string-fixer
- id: name-tests-test
- id: requirements-txt-fixer
- id: check-case-conflict
- id: fix-encoding-pragma
- id: mixed-line-ending
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
hooks:
- id: autopep8
args:
["-i", "--indent-size=2", "--max-line-length=120", "--experimental"]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.14.0
hooks:
- id: reorder-python-imports