@@ -58,9 +58,6 @@ exclude = '''
58
58
[tool .pylint .messages_control ]
59
59
max-line-length = 88
60
60
disable = [
61
- " C" ,
62
- " R" ,
63
- " W" ,
64
61
" abstract-class-instantiated" ,
65
62
" access-member-before-definition" ,
66
63
" import-error" ,
@@ -80,6 +77,131 @@ disable = [
80
77
" unsupported-assignment-operation" ,
81
78
" unsupported-membership-test" ,
82
79
" used-before-assignment" ,
80
+
81
+ # pylint type "C": convention, for programming standard violation
82
+ " consider-iterating-dictionary" ,
83
+ " consider-using-dict-items" ,
84
+ " consider-using-enumerate" ,
85
+ " consider-using-f-string" ,
86
+ " disallowed-name" ,
87
+ " import-outside-toplevel" ,
88
+ " invalid-name" ,
89
+ " line-too-long" ,
90
+ " missing-class-docstring" ,
91
+ " missing-function-docstring" ,
92
+ " missing-module-docstring" ,
93
+ " singleton-comparison" ,
94
+ " superfluous-parens" ,
95
+ " too-many-lines" ,
96
+ " typevar-name-incorrect-variance" ,
97
+ " ungrouped-imports" ,
98
+ " unidiomatic-typecheck" ,
99
+ " unnecessary-dunder-call" ,
100
+ " unnecessary-lambda-assignment" ,
101
+ " unneeded-not" ,
102
+ " use-implicit-booleaness-not-comparison" ,
103
+ " use-implicit-booleaness-not-len" ,
104
+ " use-maxsplit-arg" ,
105
+ " use-sequence-for-iteration" ,
106
+ " useless-import-alias" ,
107
+ " wrong-import-order" ,
108
+ " wrong-import-position" ,
109
+
110
+ # pylint type "R": refactor, for bad code smell
111
+ " chained-comparison" ,
112
+ " comparison-of-constants" ,
113
+ " comparison-with-itself" ,
114
+ " consider-merging-isinstance" ,
115
+ " consider-using-from-import" ,
116
+ " consider-using-get" ,
117
+ " consider-using-in" ,
118
+ " consider-using-min-builtin" ,
119
+ " consider-using-sys-exit" ,
120
+ " consider-using-ternary" ,
121
+ " consider-using-with" ,
122
+ " cyclic-import" ,
123
+ " duplicate-code" ,
124
+ " inconsistent-return-statements" ,
125
+ " invalid-sequence-index" ,
126
+ " literal-comparison" ,
127
+ " no-else-break" ,
128
+ " no-else-continue" ,
129
+ " no-else-raise" ,
130
+ " no-else-return" ,
131
+ " no-self-use" ,
132
+ " redefined-argument-from-local" ,
133
+ " simplifiable-if-expression" ,
134
+ " simplifiable-if-statement" ,
135
+ " too-few-public-methods" ,
136
+ " too-many-ancestors" ,
137
+ " too-many-arguments" ,
138
+ " too-many-boolean-expressions" ,
139
+ " too-many-branches" ,
140
+ " too-many-instance-attributes" ,
141
+ " too-many-locals" ,
142
+ " too-many-locals" ,
143
+ " too-many-nested-blocks" ,
144
+ " too-many-public-methods" ,
145
+ " too-many-return-statements" ,
146
+ " too-many-statements" ,
147
+ " unnecessary-comprehension" ,
148
+ " unnecessary-list-index-lookup" ,
149
+ " use-a-generator" ,
150
+ " useless-option-value" ,
151
+ " useless-return" ,
152
+
153
+ # pylint type "W": warning, for python specific problems
154
+ " abstract-method" ,
155
+ " arguments-differ" ,
156
+ " arguments-out-of-order" ,
157
+ " arguments-renamed" ,
158
+ " attribute-defined-outside-init" ,
159
+ " broad-except" ,
160
+ " cell-var-from-loop" ,
161
+ " comparison-with-callable" ,
162
+ " confusing-with-statement" ,
163
+ " dangerous-default-value" ,
164
+ " deprecated-module" ,
165
+ " duplicate-value" ,
166
+ " eval-used" ,
167
+ " expression-not-assigned" ,
168
+ " fixme" ,
169
+ " global-statement" ,
170
+ " global-variable-not-assigned" ,
171
+ " import-self" ,
172
+ " invalid-envvar-default" ,
173
+ " invalid-overridden-method" ,
174
+ " keyword-arg-before-vararg" ,
175
+ " method-cache-max-size-none" ,
176
+ " nan-comparison" ,
177
+ " non-parent-init-called" ,
178
+ " overridden-final-method" ,
179
+ " pointless-statement" ,
180
+ " pointless-string-statement" ,
181
+ " possibly-unused-variable" ,
182
+ " protected-access" ,
183
+ " raise-missing-from" ,
184
+ " redefined-builtin" ,
185
+ " redefined-outer-name" ,
186
+ " reimported" ,
187
+ " self-assigning-variable" ,
188
+ " self-cls-assignment" ,
189
+ " signature-differs" ,
190
+ " subprocess-run-check" ,
191
+ " super-init-not-called" ,
192
+ " try-except-raise" ,
193
+ " undefined-loop-variable" ,
194
+ " unnecessary-lambda" ,
195
+ " unnecessary-pass" ,
196
+ " unspecified-encoding" ,
197
+ " unused-argument" ,
198
+ " unused-import" ,
199
+ " unused-variable" ,
200
+ " unused-wildcard-import" ,
201
+ " using-constant-test" ,
202
+ " useless-else-on-loop" ,
203
+ " useless-parent-delegation" ,
204
+ " wildcard-import"
83
205
]
84
206
85
207
[tool .pytest .ini_options ]
0 commit comments