forked from Yelp/schematizer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
36 lines (36 loc) · 1.09 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
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: v0.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: autopep8-wrapper
- id: check-yaml
- id: debug-statements
language_version: python2.7
- id: flake8
language_version: python2.7
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: name-tests-test
exclude: (tests/helpers/(.+).py|tests/models/testing_db.py|tests/views/api_test_base.py)
- id: pretty-format-json
language_version: python2.7
args:
- --autofix
- --indent
- '4'
files: ^api_docs.*\.json$
- id: fix-encoding-pragma
- id: check-added-large-files
- id: check-byte-order-marker
- repo: https://github.com/asottile/reorder_python_imports
sha: v0.3.0
hooks:
- id: reorder-python-imports
language_version: python2.7
args:
- --add-import
- from __future__ import absolute_import
- --add-import
- from __future__ import unicode_literals