-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy path.pre-commit-config.yaml
77 lines (70 loc) · 2.15 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
exclude: '^$'
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v2.2.3
hooks:
- id: autopep8-wrapper
- id: check-added-large-files
- id: debug-statements
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: fix-encoding-pragma
- id: flake8
additional_dependencies: [
'flake8-blind-except',
'flake8-coding',
'flake8-comprehensions',
'flake8-debugger',
'flake8-deprecated',
'flake8-docstrings',
'flake8-meiqia',
'flake8-mutable',
'flake8-pep3101',
'flake8-print',
'flake8-quotes',
'flake8-string-format',
'flake8-tidy-imports',
'flake8-todo']
exclude: 'test_oauth.py'
- id: trailing-whitespace
- repo: https://github.com/ambv/black
rev: 19.3b0
hooks:
- id: black
name: black
description: 'Black: The uncompromising Python code formatter'
entry: black
language: python
language_version: python3
require_serial: true
types: [python]
# - repo: git@github.com:pre-commit/mirrors-yapf.git
# sha: v0.20.0
# hooks:
# - id: yapf
# exclude: 'migrations|settings|scripts'
# additional_dependencies: ['futures']
# args: ['--style=.style.yapf', '--parallel', '--in-place']
# - repo: git@github.com:FalconSocial/pre-commit-python-sorter.git
# sha: b57843b0b874df1d16eb0bef00b868792cb245c2
# hooks:
# - id: python-import-sorter
# args: ['--silent-overwrite']
# - repo: git@github.com:humitos/mirrors-docformatter.git
# sha: v0.0.1
# hooks:
# - id: docformatter
# args: ['--in-place', '--wrap-summaries=80', '--wrap-descriptions=80', '--pre-summary-newline', '--no-blank']
# - repo: git@github.com:humitos/mirrors-autoflake.git
# sha: v1.0
# hooks:
# - id: autoflake
# args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
# - repo: git://github.com/guykisel/prospector-mirror
# sha: 'b27f281eb9398fc8504415d7fbdabf119ea8c5e1'
# hooks:
# - id: prospector
# # https://github.com/pre-commit/pre-commit/issues/178
# language: system
# args: ['--profile=prospector']