forked from Yelp/paasta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
61 lines (61 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
- repo: https://github.com/pre-commit/pre-commit-hooks.git
sha: v0.9.1
hooks:
- id: trailing-whitespace
language_version: python3
- id: end-of-file-fixer
language_version: python3
- id: autopep8-wrapper
language_version: python3
- id: check-docstring-first
language_version: python3
- id: check-json
language_version: python3
- id: check-yaml
files: ^(?!.*template).*\.(yaml|yml|eyaml)$
language_version: python3
- id: debug-statements
language_version: python3
- id: name-tests-test
args:
- --django
files: ^tests/.*\.py$
language_version: python3
- id: requirements-txt-fixer
language_version: python3
- id: flake8
exclude: ^docs/source/conf.py$
language_version: python3
- id: check-ast
language_version: python3
- repo: https://github.com/asottile/reorder_python_imports.git
sha: v0.3.5
hooks:
- id: reorder-python-imports
language_version: python3
args:
- --add-import
- from __future__ import unicode_literals
- --add-import
- from __future__ import absolute_import
- repo: https://github.com/asottile/pyupgrade
sha: v1.1.2-1
hooks:
- id: pyupgrade
- repo: https://github.com/asottile/add-trailing-comma
sha: v0.6.1
hooks:
- id: add-trailing-comma
- repo: local
hooks:
- id: patch-enforce-autospec
name: mock.patch enforce autospec
description: This hook ensures all mock.patch invocations specify an autospec
entry: paasta_tools/contrib/mock_patch_checker.py
language: script
files: ^tests/.*\.py$
- id: no-catchall-except
name: Prevent catchall except
entry: except:$
language: pcre
files: \.py$