-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
45 lines (44 loc) · 1.14 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
43
44
45
minimum_pre_commit_version: 2.9.3
default_language_version:
# force all unspecified python hooks to run python3
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
name: Check large files (>500kB)
args: [ "--maxkb=1000" ]
- id: trailing-whitespace
name: Trim trailing whitespaces
- id: end-of-file-fixer
name: Add empty line to end of file
- id: check-merge-conflict
name: Check unresolved merge conflicts
- id: check-json
name: Check JSON
- id: check-yaml
name: Check YAML
- id: check-toml
name: Check TOML
- id: check-xml
name: Check XML
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: Reorder python imports
- repo: local
hooks:
- id: yapf
name: Run yapf formatter
entry: yapf
language: system
types: [python]
- repo: local
hooks:
- id: pylint
name: Run pylint analysis
entry: pylint
language: system
types: [python]