-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
40 lines (40 loc) · 1.24 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
sha: v0.9.2
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: autopep8-wrapper
- id: check-docstring-first
- id: check-json
- id: debug-statements
- id: name-tests-test
args: [--django]
- id: requirements-txt-fixer
- id: flake8
exclude: ^docs/source/conf.py$
- id: check-ast
- id: fix-encoding-pragma
args: [--remove]
- id: check-added-large-files
args: ['--maxkb=1024']
- repo: https://github.com/asottile/reorder_python_imports.git
sha: v0.3.5
hooks:
- id: reorder-python-imports
args: [
'--remove-import', 'from __future__ import absolute_import',
'--remove-import', 'from __future__ import division',
'--remove-import', 'from __future__ import print_function',
'--remove-import', 'from __future__ import unicode_literals',
]
- repo: https://github.com/asottile/pyupgrade
sha: v1.2.0
hooks:
- id: pyupgrade
args: [--py3-plus]
- repo: https://github.com/asottile/add-trailing-comma
sha: v0.6.4
hooks:
- id: add-trailing-comma
args: [--py36-plus]