forked from PaddlePaddle/PaddleTest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (33 loc) · 839 Bytes
/
.pre-commit-config.yaml
File metadata and controls
36 lines (33 loc) · 839 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: check-merge-conflict
- id: trailing-whitespace
- repo: https://gitee.com/mirrors/black
rev: 22.6.0
hooks:
- id: black
args:
- --line-length=120
- repo: https://gitee.com/mirrors_PyCQA/flake8.git
rev: 3.8.4
hooks:
- id: flake8
args:
- --max-line-length=120
- --extend-ignore=E1,E203,E722,E402,F401,F403,F405,F811,N,E
exclude: ^.*test/
additional_dependencies:
- "pep8-naming"
- repo: https://github.com/PyCQA/pylint
rev: v2.8.3
hooks:
- id: pylint
files: \.(py)$
args:
- --disable=E,W,R,C0103,C0413,C0415
- --enable=
- --max-line-length=120
# - --fail-under=9