forked from facebookincubator/AITemplate
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.flake8
117 lines (116 loc) · 3.05 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
108
109
110
111
112
113
114
115
116
117
[flake8]
select = B,C,E,F,P,W,B9
max-line-length = 80
# Main Explanation Docs: https://github.com/grantmcconnaughey/Flake8Rules
ignore =
# Black conflicts and overlaps.
# Found in https://github.com/psf/black/issues/429
# Line too long.
B950,
# Indentation is not a multiple of four.
E111,
# Expected an indented block (comment).
E115,
# Over-indented.
E117,
# Continuation line under-indented for hanging indent.
E121,
# Continuation line missing indentation or outdented.
E122,
# Closing bracket does not match indentation of opening bracket's line.
E123,
# Closing bracket does not match visual indentation.
E124,
# Continuation line with same indent as next logical line.
E125,
# Continuation line over-indented for hanging indent.
E126,
# Continuation line over-indented for visual indent.
E127,
# Continuation line under-indented for visual indent.
E128,
# Visually indented line with same indent as next logical line.
E129,
# Continuation line unaligned for hanging indent.
E131,
# Whitespace after '('.
E201,
# Whitespace before ')'.
E202,
# Whitespace before ':'.
E203,
# Multiple spaces before operator.
E221,
# Multiple spaces after operator.
E222,
# Missing whitespace around operator.
E225,
# Missing whitespace around arithmetic operator.
E226,
# Missing whitespace around bitwise or shift operator.
E227,
# Missing whitespace after ',', ';', or ':'.
E231,
# Multiple spaces after ','.
E241,
# Unexpected spaces around keyword / parameter equals.
E251,
# Missing whitespace around parameter equals.
E252,
# At least two spaces before inline comment.
E261,
# Inline comment should start with '# '.
E262,
# Block comment should start with '# '.
E265,
# Multiple spaces after keyword.
E271,
# Multiple spaces before keyword.
E272,
# Expected 1 blank line, found 0.
E301,
# Expected 2 blank lines, found 0.
E302,
# Too many blank lines (3).
E303,
# Expected 2 blank lines after end of function or class.
E305,
# Expected 1 blank line before a nested definition.
E306,
# Line too long (82 > 79 characters).
E501,
# The backslash is redundant between brackets.
E502,
# Multiple statements on one line (colon).
E701,
# Multiple statements on one line (semicolon).
E702,
# Statement ends with a semicolon.
E703,
# Multiple statements on one line (def).
E704,
# Trailing whitespace.
W291,
# No newline at end of file.
W292,
# Blank line contains whitespace.
W293,
# Blank line at end of file.
W391,
# Line break occurred after a binary operator.
W504,
# Too opinionated.
# Block comment should start with '# '.
E265,
# Too many leading '#' for block comment.
E266,
# Module level import not at top of file. (Use cases like demandimport https://fburl.com/demandimport require statements before imports)
E402,
# Do not use bare except, specify exception instead. (Duplicate of B001)
E722,
# (Duplicate of B003)
P207,
# (Duplicate of C403)
P208,
# Line break occurred before a binary operator.
W503