forked from pajbot/pajbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
24 lines (22 loc) · 1.07 KB
/
.flake8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[flake8]
max-line-length = 120
exclude = configs/*,install/*,venv/*,pajbot/scripts/*,__pycache__/*,requirements/*,static/*,templates/*,uwsgiconfigs/*,.git/*,userdispatch.py,src/*,__init__.py
# see: https://flake8.readthedocs.io/en/latest/user/violations.html#selecting-violations-with-flake8
select = E, F, W, C90, B950
ignore = E123,E126,E127,E128,E501,E131,E722,Q003,Q000,W503,E203
application-import-names = pajbot
import-order-style = smarkets
# E123 = closing bracket does not match indentation of opening bracket’s line
# E126 = continuation line over-indented for hanging indent
# E127 = continuation line over-indented for visual indent
# E128 = continuation line under-indented for visual indent
# E501 = line too long (82 > 79 characters)
# E722 = don't use bare except (lol)
# Q003 = Change outer quotes to avoid escaping inner quotes
# Q000 = Remove bad quotes
# W503 = line break before binary operator
# E203 = whitespace before :
# Unused
# E302 = expected 2 blank lines, found 0
# F401 = module imported but unused
# I101 = The names in your from import are in wrong order