@@ -165,6 +165,119 @@ lines-after-imports = 2
165
165
"src/_pytest/_version.py" = [" I001" ]
166
166
"testing/python/approx.py" = [" B015" ]
167
167
168
+ [tool .pylint .main ]
169
+ # Maximum number of characters on a single line.
170
+ max-line-length = 120
171
+ disable = [
172
+ " abstract-method" ,
173
+ " arguments-differ" ,
174
+ " arguments-renamed" ,
175
+ " assigning-non-slot" ,
176
+ " attribute-defined-outside-init" ,
177
+ " bad-classmethod-argument" ,
178
+ " bad-mcs-method-argument" ,
179
+ " broad-exception-caught" ,
180
+ " broad-exception-raised" ,
181
+ " cell-var-from-loop" ,
182
+ " comparison-of-constants" ,
183
+ " comparison-with-callable" ,
184
+ " comparison-with-itself" ,
185
+ " condition-evals-to-constant" ,
186
+ " consider-using-dict-items" ,
187
+ " consider-using-enumerate" ,
188
+ " consider-using-from-import" ,
189
+ " consider-using-f-string" ,
190
+ " consider-using-in" ,
191
+ " consider-using-sys-exit" ,
192
+ " consider-using-ternary" ,
193
+ " consider-using-with" ,
194
+ " cyclic-import" ,
195
+ " disallowed-name" ,
196
+ " duplicate-code" ,
197
+ " eval-used" ,
198
+ " exec-used" ,
199
+ " expression-not-assigned" ,
200
+ " fixme" ,
201
+ " global-statement" ,
202
+ " implicit-str-concat" ,
203
+ " import-error" ,
204
+ " import-outside-toplevel" ,
205
+ " inconsistent-return-statements" ,
206
+ " invalid-bool-returned" ,
207
+ " invalid-name" ,
208
+ " invalid-repr-returned" ,
209
+ " invalid-str-returned" ,
210
+ " keyword-arg-before-vararg" ,
211
+ " line-too-long" ,
212
+ " method-hidden" ,
213
+ " misplaced-bare-raise" ,
214
+ " missing-docstring" ,
215
+ " missing-timeout" ,
216
+ " multiple-statements" ,
217
+ " no-else-break" ,
218
+ " no-else-continue" ,
219
+ " no-else-raise" ,
220
+ " no-else-return" ,
221
+ " no-member" ,
222
+ " no-name-in-module" ,
223
+ " no-self-argument" ,
224
+ " not-an-iterable" ,
225
+ " not-callable" ,
226
+ " pointless-exception-statement" ,
227
+ " pointless-statement" ,
228
+ " pointless-string-statement" ,
229
+ " protected-access" ,
230
+ " raise-missing-from" ,
231
+ " redefined-argument-from-local" ,
232
+ " redefined-builtin" ,
233
+ " redefined-outer-name" ,
234
+ " reimported" ,
235
+ " simplifiable-condition" ,
236
+ " simplifiable-if-expression" ,
237
+ " singleton-comparison" ,
238
+ " superfluous-parens" ,
239
+ " super-init-not-called" ,
240
+ " too-few-public-methods" ,
241
+ " too-many-ancestors" ,
242
+ " too-many-arguments" ,
243
+ " too-many-branches" ,
244
+ " too-many-function-args" ,
245
+ " too-many-instance-attributes" ,
246
+ " too-many-lines" ,
247
+ " too-many-locals" ,
248
+ " too-many-nested-blocks" ,
249
+ " too-many-public-methods" ,
250
+ " too-many-return-statements" ,
251
+ " too-many-statements" ,
252
+ " try-except-raise" ,
253
+ " typevar-name-incorrect-variance" ,
254
+ " unbalanced-tuple-unpacking" ,
255
+ " undefined-loop-variable" ,
256
+ " undefined-variable" ,
257
+ " unexpected-keyword-arg" ,
258
+ " unidiomatic-typecheck" ,
259
+ " unnecessary-comprehension" ,
260
+ " unnecessary-dunder-call" ,
261
+ " unnecessary-lambda" ,
262
+ " unnecessary-lambda-assignment" ,
263
+ " unpacking-non-sequence" ,
264
+ " unspecified-encoding" ,
265
+ " unsubscriptable-object" ,
266
+ " unused-argument" ,
267
+ " unused-import" ,
268
+ " unused-variable" ,
269
+ " used-before-assignment" ,
270
+ " use-dict-literal" ,
271
+ " use-implicit-booleaness-not-comparison" ,
272
+ " use-implicit-booleaness-not-len" ,
273
+ " useless-else-on-loop" ,
274
+ " useless-import-alias" ,
275
+ " useless-return" ,
276
+ " use-maxsplit-arg" ,
277
+ " using-constant-test" ,
278
+ " wrong-import-order" ,
279
+ ]
280
+
168
281
[tool .check-wheel-contents ]
169
282
# check-wheel-contents is executed by the build-and-inspect-python-package action.
170
283
# W009: Wheel contains multiple toplevel library entries
0 commit comments