-
Notifications
You must be signed in to change notification settings - Fork 227
/
.pre-commit-config.yaml
62 lines (62 loc) · 1.85 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
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v2.4.0
hooks:
- id: pretty-format-json
name: 'Pretty format JSON'
args:
- '--no-sort-keys'
- '--autofix'
- '--indent=2'
- id: trailing-whitespace
name: 'Fix trailing whitespace'
exclude: setup.cfg
- id: end-of-file-fixer
name: 'Fix missing EOF'
exclude: setup.cfg
- id: check-executables-have-shebangs
name: 'Check exeutables for shebangs'
- 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
additional_dependencies:
- flake8-mutable
- flake8-type-annotations
- flake8-eradicate
- flake8-bugbear
name: 'Check for Python style guideline violations'
- id: check-json
name: 'Validate JSON'
- id: check-ast
name: 'Check Python abstract syntax tree'
- repo: 'https://github.com/asottile/reorder_python_imports'
rev: v1.8.0
hooks:
- id: reorder-python-imports
name: 'Reorder Python imports'
- repo: 'https://github.com/pre-commit/mirrors-autopep8'
rev: v1.4.4
hooks:
- id: autopep8
name: 'Pretty format Python'
args:
- '--in-place'
- '--aggressive'
- '--aggressive'
- '--experimental'
- '--remove-all-unused-imports'
- '--ignore-init-module-imports'
- '--remove-unused-variable'
- '--ignore E231'
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
name: 'Ruthlessly format Python'
language_version: python3.7
args:
- '--line-length=79'