-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
129 lines (127 loc) · 3.6 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
118
119
120
121
122
123
124
125
126
127
128
129
[flake8]
max-complexity = 20
radon-max-cc = 20
max-line-length = 88
exclude =
src/tests
ignore =
# FIXME
T100,
T101,
# shadowing a python builtin -> quite useful for function parameters
A002,
# class attribute named after a python builtin
A003,
# missing trailing comma
C812,
# whitespace before ':'
E203,
# too many leading '#' for block comment
E266,
# line too long (82 > 79 characters)
E501,
# Found commented out code
E800,
# line break before binary operator
W503,
#######################################################################
# Documentation - http://www.pydocstyle.org/en/2.1.1/error_codes.html #
#######################################################################
######################
# Missing Docstrings #
######################
# Missing docstring in public module
D100,
# Missing docstring in public class
D101,
# Missing docstring in public method
D102,
# Missing docstring in public function
D103,
# Missing docstring in public package
D104,
# Missing docstring in magic method
D105,
# Missing docstring in public nested class
D106,
# Missing docstring in __init__
D107,
#####################
# Whitespace Issues #
#####################
# One-line docstring should fit on one line with quotes
D200,
# No blank lines allowed before function docstring
D201,
# No blank lines allowed after function docstring
D202,
# 1 blank line required before class docstring
D203,
# 1 blank line required after class docstring
D204,
# 1 blank line required between summary line and description
D205,
# Docstring should be indented with spaces, not tabs
D206,
# Docstring is under-indented
D207,
# Docstring is over-indented
D208,
# Multi-line docstring closing quotes should be on a separate line
D209,
# No whitespaces allowed surrounding docstring text
D210,
# No blank lines allowed before class docstring
D211,
# Multi-line docstring summary should start at the first line
D212,
# Multi-line docstring summary should start at the second line
D213,
# Section is over-indented
D214,
# Section underline is over-indented
D215,
#################
# Quotes Issues #
#################
# Use “”“triple double quotes”“”
D300
# Use r”“” if any backslashes in a docstring
D301
# Use u”“” for Unicode docstrings
D302
############################
# Docstring Content Issues #
############################
# First line should end with a period
D400,
# First line should be in imperative mood
D401,
# First line should be in imperative mood; try rephrasing
D401,
# First line should not be the function’s “signature”
D402,
# First word of the first line should be properly capitalized
D403,
# First word of the docstring should not be This
D404,
# Section name should be properly capitalized
D405,
# Section name should end with a newline
D406,
# Missing dashed underline after section
D407,
# Section underline should be in the line following the section’s name
D408,
# Section underline should match the length of its name
D409,
# Missing blank line after section
D410,
# Missing blank line before section
D411,
# No blank lines allowed between a section header and its content
D412,
# Missing blank line after last section
D413,
# Section has no content
D414