add pre-commit config for flake8
This commit is contained in:
parent
b61cbf8ab4
commit
549fed29ea
6 changed files with 41 additions and 6 deletions
24
setup.cfg
24
setup.cfg
|
|
@ -22,3 +22,27 @@ source =
|
|||
flask
|
||||
.tox/*/lib/python*/site-packages/flask
|
||||
.tox/pypy/site-packages/flask
|
||||
|
||||
[flake8]
|
||||
# B = bugbear
|
||||
# E = pycodestyle errors
|
||||
# F = flake8 pyflakes
|
||||
# W = pycodestyle warnings
|
||||
# B9 = bugbear opinions
|
||||
select = B, E, F, W, B9
|
||||
ignore =
|
||||
# slice notation whitespace, invalid
|
||||
E203
|
||||
# import at top, too many circular import fixes
|
||||
E402
|
||||
# line length, handled by bugbear B950
|
||||
E501
|
||||
# bare except, handled by bugbear B001
|
||||
E722
|
||||
# bin op line break, invalid
|
||||
W503
|
||||
# up to 88 allowed by bugbear B950
|
||||
max-line-length = 80
|
||||
per-file-ignores =
|
||||
# __init__ modules export names
|
||||
**/__init__.py: F401
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue