-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.06 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
# File configures YAPF to be used as a git hook with https://github.com/pre-commit/pre-commit
repos:
- repo: local
hooks:
- id: yapf
name: yapf
language: python
entry: yapf
args: ["-p","-i","r"]
types: [python]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: check-yaml
- id: check-docstring-first
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-ast
- id: check-json
- id: pretty-format-json
args:
- "--autofix"
- "--indent=2"
- "--no-sort-keys"
- id: debug-statements
- id: check-merge-conflict
- id: end-of-file-fixer
- id: detect-private-key
- id: mixed-line-ending
- id: requirements-txt-fixer
- id: fix-byte-order-marker
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
args: ["--profile=black"]
language: python
types: [python]