-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
42 lines (42 loc) · 1.09 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
38
39
40
41
42
default_language_version:
python: python3.8
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
- id: check-added-large-files
- id: check-yaml
- id: debug-statements
- id: check-merge-conflict
- id: double-quote-string-fixer
- id: end-of-file-fixer
- repo: https://github.com/google/yapf
rev: v0.40.2
hooks:
- id: yapf
name: Formatting files with yapf
language: python
entry: yapf
args: ["-i", "-vv", "--style={based_on_style: google}"]
types: [python]
additional_dependencies: [toml]
- repo: https://github.com/PyCQA/pylint
rev: v3.0.3
hooks:
- id: pylint
name: Checking code with pylint
language: python
entry: pylint
args:
[
"-rn",
"-sn",
"--rcfile=.pylintrc",
"--load-plugins=pylint.extensions.docparams",
]
types: [python]
- repo: meta
hooks:
- id: check-hooks-apply