-
Notifications
You must be signed in to change notification settings - Fork 2
/
.flake8
107 lines (75 loc) · 2 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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# http://flake8.pycqa.org/en/latest/user/error-codes.html
# https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes
# http://flake8.pycqa.org/en/latest/user/options.html#options-list
[flake8]
ignore =
D203,
# Missing docstring in __init__
D107,
# Empty line between class declaration and body.
D204,
# Empty line between docstring summary and body.
D205,
# Indentation problems with docstring
D208,
# accept indents other than 4 spaces for code
E111,
# accept indents other than 4 spaces for comments
E114,
# under-indentation
E121,
# over-indentation for hanging indent
E126,
# over-indentation for visual indent
E127,
# under-indentation for visual indent
E128,
# multiple spaces after operator
E222,
# multiple spaces after comma
E241,
# space around = func(a = 1)
E251,
# multiple spaces after keyword
E271,
# multiple spaces before keyword
E272,
# multiple imports on one line
E401,
# module level imports anywhere (sometimes you need some conditional code in between)
E402,
# accept long lines > 79 characters; not used since we specify longer lines below
# E501,
# multiple statements on a line (colon)
E701
# multiple statements on a line (semicolon)
E702,
# multiple statements on a line (def)
E704,
# when you want to use simple except without argument (sometimes necessary), mark the line with # noqa: E722
# E722,
# Ignore missing comment in magice methods
D105,
# whitespace beside """ inside docstrings
D210,
# ''' for docstrings
D300,
# camelcase functions
N802,
# camelcase function arguments
N803,
# renaming self
N805,
# camelcase variable
N806,
# camelcase class variable
N815,
# camelcase variable on module level
N816
exclude = .git,.svn,__pycache__,docs,build,dist
max-complexity = 18
doctests
statistics
count
max-line-length=240
max-doc-length=240