-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
37 lines (35 loc) · 1.01 KB
/
.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
33
34
35
36
37
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: fix-encoding-pragma
exclude: &exclude_files >
(?x)^(
docs/.*|
)$
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/PyCQA/pylint
rev: v2.14.3
hooks:
- id: pylint
language: system
args: [
'--max-line-length=120',
'--disable=duplicate-code',
'--disable=import-outside-toplevel',
'--disable=missing-docstring',
'--disable=locally-disabled',
'--disable=too-few-public-methods',
'--disable=too-many-arguments',
'--disable=too-many-instance-attributes',
'--disable=cyclic-import'
]
exclude: *exclude_files
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.32.0
hooks:
- id: yapf
types: [python]