forked from Yelp/beans
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
49 lines (49 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
- repo: https://github.com/pre-commit/pre-commit-hooks
sha: v0.7.0
hooks:
- id: trailing-whitespace
exclude: assets/vendor/*
language_version: python2.7
- id: end-of-file-fixer
exclude: assets/vendor/*
language_version: python2.7
- id: autopep8-wrapper
language_version: python2.7
- id: check-json
files: \.(jshintrc|json)$
language_version: python2.7
- id: check-yaml
language_version: python2.7
- id: debug-statements
language_version: python2.7
- id: name-tests-test
language_version: python2.7
- id: flake8
language_version: python2.7
- id: requirements-txt-fixer
language_version: python2.7
- id: fix-encoding-pragma
language_version: python2.7
- id: check-byte-order-marker
language_version: python2.7
- id: check-merge-conflict
language_version: python2.7
- repo: https://github.com/asottile/reorder_python_imports
sha: v0.3.2
hooks:
- id: reorder-python-imports
args:
- --add-import
- from __future__ import absolute_import
- --add-import
- from __future__ import print_function
- --add-import
- from __future__ import unicode_literals
language_version: python2.7
- repo: https://github.com/Yelp/detect-secrets
sha: 0.9.1
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: .*tests/.*|.*yelp/testing/.*|\.pre-commit-config\.yaml
language_version: python2.7