This repository has been archived by the owner on Apr 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
65 lines (60 loc) · 1.72 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
# - id: check-yaml
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 21.10b0
hooks:
- id: black
args: [
'--line-length=120',
'--skip-string-normalization',
]
- repo: https://github.com/pycqa/isort
rev: 5.10.0
hooks:
- id: isort
args: [
'--profile=black',
'--filter-files',
'--force-single-line-imports',
'--reverse-relative',
]
# - repo: https://gitlab.com/pycqa/flake8
# rev: 3.9.2
# hooks:
# - id: flake8
# additional_dependencies: [
# 'pycodestyle==2.7.0', # E,W
# 'pyflakes==2.3.0', # F
# 'mccabe==0.6.1', # C
# 'flake8-bugbear==21.3.2', # B
# 'flake8-builtins==1.5.3', # A
# 'flake8-comprehensions==3.3.1', # C4
# 'flake8-debugger==4.0.0', # T1
# 'flake8-logging-format==0.6.0', # G
# 'flake8-print==4.0.0', # T0
# ]
# args: [
# '--select=E,W,F,C,B,A,C4,T1,G,T0',
# '--ignore=W503,B008,B305,A003,G003,G004',
# '--max-complexity=10',
# '--max-line-length=120',
# ]
- repo: https://github.com/myint/docformatter
rev: v1.4
hooks:
- id: docformatter
args: [
'--wrap-summaries=120',
'--wrap-descriptions=120',
'--in-place',
]