-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.pre-commit-config.yaml
70 lines (54 loc) · 1.58 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
exclude: 'setup.cfg'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.1-1
hooks:
- id: pretty-format-json
name: Pretty format JSON
args:
- --no-sort-keys
- id: trailing-whitespace
name: Fix trailing whitespace
- id: end-of-file-fixer
name: Fix missing EOF
- id: check-executables-have-shebangs
name: Check exeutables for shebangs
- id: check-added-large-files
name: Check for any large files added
- id: check-merge-conflict
name: Check for merge conflict fragments
- id: check-case-conflict
name: Check for filesystem character case conflicts
- id: detect-private-key
name: Check for cleartext private keys stored
- id: flake8
name: Check for Python style guideline violations
- id: check-yaml
name: Validate YAML
id: fix-encoding-pragma
name: Check for utf-8 encoding
- id: check-json
name: Validate JSON
- id: check-ast
name: Check Python abstract syntax tree
- id: double-quote-string-fixer
name: Replace Python " with '
- id: autopep8-wrapper
args:
- --in-place
- --aggressive
- --aggressive
- --experimental
name: Pretty format Python
- repo: https://github.com/asottile/reorder_python_imports
sha: v1.1.1
hooks:
- id: reorder-python-imports
name: Reorder Python imports
- repo: https://github.com/asottile/add-trailing-comma
sha: v0.7.0
hooks:
- id: add-trailing-comma
name: Fix Python trailing commas
args:
- --py36-plus