1
+ [CUSTOM]
2
+
3
+ # allow all trailing whitespaces
4
+ [C0303(trailing-whitespace)]
5
+ disable =C0303
6
+
7
+ # disable recommend using enumerate in for loops
8
+ [C0200(consider-using-enumerate)]
9
+ disable =C0200
10
+
11
+ # allow unlimited number of instance attributes
12
+ [R0902(too-many-instance-attributes)]
13
+ disable =R0902
14
+
15
+ # allow dataframe cells to be directly assigned
16
+ [E1137(unsupported-assignment-operation)]
17
+ disable =E1137
18
+
19
+ # diable unsubscriptable object
20
+ [E1136(unsubscriptable-object)]
21
+ disable =E1136
22
+
23
+
24
+ # =======================================================================================
25
+ # =======================================================================================
26
+
27
+ [REPORTS]
28
+ # Python expression which should return a score less than or equal to 10. You
29
+ # have access to the variables 'fatal', 'error', 'warning', 'refactor',
30
+ # 'convention', and 'info' which contain the number of messages in each
31
+ # category, as well as 'statement' which is the total number of statements
32
+ # analyzed. This score is used by the global evaluation report (RP0004).
33
+ evaluation =max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10))
34
+ # Template used to display messages. This is a python new-style format string
35
+ # used to format the message information. See doc for all details.
36
+ msg-template =
37
+ # Set the output format. Available formats are text, parseable, colorized, json
38
+ # and msvs (visual studio). You can also give a reporter class, e.g.
39
+ # mypackage.mymodule.MyReporterClass.
40
+ output-format =msvs
41
+ # Tells whether to display a full report or only the messages.
42
+ reports =yes
43
+ # Activate the evaluation score.
44
+ score =yes
45
+
46
+
47
+ [DESIGN]
48
+ # List of regular expressions of class ancestor names to ignore when counting
49
+ # public methods (see R0903)
50
+ exclude-too-few-public-methods =
51
+ # List of qualified class names to ignore when counting class parents (see R0901)
52
+ ignored-parents =
53
+ # Maximum number of arguments for function / method.
54
+ max-args =10
55
+ # Maximum number of attributes for a class (see R0902).
56
+ max-attributes =7
57
+ # Maximum number of boolean expressions in an if statement (see R0916).
58
+ max-bool-expr =5
59
+ # Maximum number of branch for function / method body.
60
+ max-branches =15
61
+ # Maximum number of locals for function / method body.
62
+ max-locals =20
63
+ # Maximum number of parents for a class (see R0901).
64
+ max-parents =7
65
+ # Maximum number of public methods for a class (see R0904).
66
+ max-public-methods =20
67
+ # Maximum number of return / yield for function / method body.
68
+ max-returns =5
69
+ # Maximum number of statements in function / method body.
70
+ max-statements =50
71
+ # Minimum number of public methods for a class (see R0903).
72
+ min-public-methods =2
73
+
74
+
75
+ [CLASSES]
76
+ # Warn about protected attribute access inside special methods
77
+ check-protected-access-in-special-methods =no
78
+ # List of method names used to declare (i.e. assign) instance attributes.
79
+ defining-attr-methods =__init__, __new__, setUp, __post_init__
80
+ # List of member names, which should be excluded from the protected access warning.
81
+ exclude-protected =_asdict, _fields, _replace, _source, _make
82
+ # List of valid names for the first argument in a class method.
83
+ valid-classmethod-first-arg =cls
84
+ # List of valid names for the first argument in a metaclass class method.
85
+ valid-metaclass-classmethod-first-arg =cls
86
+
87
+
88
+ [FORMAT]
89
+ # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
90
+ expected-line-ending-format =
91
+ # Regexp for a line that is allowed to be longer than the limit.
92
+ ignore-long-lines =^\s*(# )?<?https?://\S+>?$
93
+ # Number of spaces of indent required inside a hanging or continued line.
94
+ indent-after-paren =4
95
+ # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
96
+ # tab).
97
+ indent-string =' '
98
+ # Maximum number of characters on a single line.
99
+ max-line-length =150
100
+ # Maximum number of lines in a module.
101
+ max-module-lines =1000
102
+ # Allow the body of a class to be on the same line as the declaration if body contains single statement.
103
+ single-line-class-stmt =no
104
+ # Allow the body of an if to be on the same line as the test if there is no else.
105
+ single-line-if-stmt =no
106
+
107
+
108
+ [STRING]
109
+ # This flag controls whether inconsistent-quotes generates a warning when the
110
+ # character used as a quote delimiter is used inconsistently within a module.
111
+ check-quote-consistency =no
112
+ # This flag controls whether the implicit-str-concat should generate a warning
113
+ # on implicit string concatenation in sequences defined over several lines.
114
+ check-str-concat-over-line-jumps =no
115
+
116
+
117
+ [LOGGING]
118
+ # The type of string formatting that logging methods do. `old` means using
119
+ # % formatting, `new` is for `{}` formatting.
120
+ logging-format-style =old
121
+ # Logging modules to check that the string format arguments are in logging
122
+ # function parameter format.
123
+ logging-modules =logging
124
+
125
+
126
+ [BASIC]
127
+ # Naming style matching correct argument names.
128
+ argument-naming-style =camelCase
129
+ # Naming style matching correct attribute names.
130
+ attr-naming-style =camelCase
131
+ # Regular expression matching correct attribute names. Overrides attr-naming-
132
+ # style. If left empty, attribute names will be checked with the set naming
133
+ # style.
134
+ attr-rgx =([a-z][a-zA-Z]|^_[a-z][a-zA-Z]|^__[a-z][a-zA-Z])
135
+ # Bad variable names which should always be refused, separated by a comma.
136
+ bad-names =foo, bar, baz, toto, tutu, tata
137
+ # Naming style matching correct class attribute names.
138
+ class-attribute-naming-style =camelCase
139
+ # Naming style matching correct class constant names.
140
+ class-const-naming-style =UPPER_CASE
141
+ # Naming style matching correct class names.
142
+ class-naming-style =PascalCase
143
+ # Naming style matching correct constant names.
144
+ const-naming-style =UPPER_CASE
145
+ # Minimum line length for functions/classes that require docstrings, shorter
146
+ # ones are exempt.
147
+ docstring-min-length =-1
148
+ # Naming style matching correct function names.
149
+ function-naming-style =camelCase
150
+ # Good variable names which should always be accepted, separated by a comma.
151
+ good-names =i, j, k, ex, run
152
+ # Include a hint for the correct naming format with invalid-name.
153
+ include-naming-hint =no
154
+ # Naming style matching correct inline iteration names.
155
+ inlinevar-naming-style =camelCase
156
+ # Naming style matching correct method names.
157
+ method-naming-style =camelCase
158
+ # Naming style matching correct module names.
159
+ module-naming-style =camelCase
160
+ # List of decorators that produce properties, such as abc.abstractproperty. Add
161
+ # to this list to register other decorators that produce valid properties.
162
+ # These decorators are taken in consideration only for invalid-name.
163
+ property-classes =abc.abstractproperty
164
+ # Naming style matching correct variable names.
165
+ variable-naming-style =camelCase
166
+
167
+
168
+ [SIMILARITIES]
169
+ # Comments are removed from the similarity computation
170
+ ignore-comments =yes
171
+ # Docstrings are removed from the similarity computation
172
+ ignore-docstrings =yes
173
+ # Imports are removed from the similarity computation
174
+ ignore-imports =yes
175
+ # Signatures are removed from the similarity computation
176
+ ignore-signatures =yes
177
+ # Minimum lines number of a similarity.
178
+ min-similarity-lines =4
0 commit comments