-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.pre-commit-config.yaml
51 lines (51 loc) · 1.5 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: flake8
language_version: python3.6
args: [
--max-line-length=100,
# We did some funky thing in __init__.py, skip them for now.
--exclude=*__init__.py
]
- id: trailing-whitespace
language_version: python3.6
- id: end-of-file-fixer
language_version: python3.6
- id: check-merge-conflict
language_version: python3.6
- id: requirements-txt-fixer
language_version: python3.6
- id: name-tests-test
language_version: python3.6
- id: double-quote-string-fixer
language_version: python3.6
- id: forbid-new-submodules
language_version: python3.6
- id: check-yaml
language_version: python3.6
files: (\.(yaml|yml|eyaml))$
- id: check-json
files: \.(jshintrc|json)$
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.5.1
hooks:
- id: autopep8
language_version: python3.6
- repo: https://github.com/asottile/add-trailing-comma
rev: v2.0.1
hooks:
- id: add-trailing-comma
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.2.0
hooks:
- id: reorder-python-imports
language_version: python3.6
- repo: https://github.com/asottile/pyupgrade
rev: v2.1.1
hooks:
- id: pyupgrade
args:
- --py3-plus
language_version: python3.6