5
5
# only in one or another interpreter, leading to false positives when analysed.
6
6
analyse-fallback-blocks =no
7
7
8
+ # Clear in-memory caches upon conclusion of linting. Useful if running pylint
9
+ # in a server-like mode.
10
+ clear-cache-post-run =no
11
+
8
12
# Load and enable all available extensions. Use --list-extensions to see a list
9
13
# all available extensions.
10
14
# enable-all-extensions=
@@ -46,8 +50,8 @@ ignore=CVS
46
50
47
51
# Add files or directories matching the regular expressions patterns to the
48
52
# ignore-list. The regex matches against paths and can be in Posix or Windows
49
- # format. Because '\' represents the directory delimiter on Windows systems, it
50
- # can't be used as an escape character.
53
+ # format. Because '\\ ' represents the directory delimiter on Windows systems,
54
+ # it can't be used as an escape character.
51
55
ignore-paths =
52
56
53
57
# Files or directories matching the regular expression patterns are skipped.
@@ -84,11 +88,17 @@ persistent=yes
84
88
85
89
# Minimum Python version to use for version dependent checks. Will default to
86
90
# the version used to run pylint.
87
- py-version =3.10
91
+ py-version =3.11
88
92
89
93
# Discover python modules and packages in the file system subtree.
90
94
recursive =no
91
95
96
+ # Add paths to the list of the source roots. Supports globbing patterns. The
97
+ # source root is an absolute path or a path relative to the current working
98
+ # directory used to determine a package namespace for modules located under the
99
+ # source root.
100
+ source-roots =
101
+
92
102
# When enabled, pylint would attempt to guess common misconfiguration and emit
93
103
# user-friendly hints instead of false-positive error messages.
94
104
suggestion-mode =yes
@@ -224,6 +234,10 @@ no-docstring-rgx=^_
224
234
# These decorators are taken in consideration only for invalid-name.
225
235
property-classes =abc.abstractproperty
226
236
237
+ # Regular expression matching correct type alias names. If left empty, type
238
+ # alias names will be checked with the set naming style.
239
+ # typealias-rgx=
240
+
227
241
# Regular expression matching correct type variable names. If left empty, type
228
242
# variable names will be checked with the set naming style.
229
243
# typevar-rgx=
@@ -246,21 +260,18 @@ check-protected-access-in-special-methods=no
246
260
defining-attr-methods =__init__,
247
261
__new__,
248
262
setUp,
263
+ asyncSetUp,
249
264
__post_init__
250
265
251
266
# List of member names, which should be excluded from the protected access
252
267
# warning.
253
- exclude-protected =_asdict,
254
- _fields,
255
- _replace,
256
- _source,
257
- _make
268
+ exclude-protected =_asdict,_fields,_replace,_source,_make,os._exit
258
269
259
270
# List of valid names for the first argument in a class method.
260
271
valid-classmethod-first-arg =cls
261
272
262
273
# List of valid names for the first argument in a metaclass class method.
263
- valid-metaclass-classmethod-first-arg =cls
274
+ valid-metaclass-classmethod-first-arg =mcs
264
275
265
276
266
277
[DESIGN]
@@ -274,7 +285,7 @@ exclude-too-few-public-methods=
274
285
ignored-parents =
275
286
276
287
# Maximum number of arguments for function / method.
277
- max-args =5
288
+ max-args =10
278
289
279
290
# Maximum number of attributes for a class (see R0902).
280
291
max-attributes =7
@@ -307,8 +318,7 @@ min-public-methods=2
307
318
[EXCEPTIONS]
308
319
309
320
# Exceptions that will emit a warning when caught.
310
- overgeneral-exceptions =builtins.BaseException,
311
- builtins.Exception
321
+ overgeneral-exceptions =builtins.BaseException,builtins.Exception
312
322
313
323
314
324
[FORMAT]
@@ -327,7 +337,7 @@ indent-after-paren=4
327
337
indent-string =' '
328
338
329
339
# Maximum number of characters on a single line.
330
- max-line-length =240
340
+ max-line-length =100
331
341
332
342
# Maximum number of lines in a module.
333
343
max-module-lines =1000
@@ -347,6 +357,9 @@ single-line-if-stmt=no
347
357
# one.
348
358
allow-any-import-level =
349
359
360
+ # Allow explicit reexports by alias from a package __init__.
361
+ allow-reexport-from-package =no
362
+
350
363
# Allow wildcard imports from modules that define __all__.
351
364
allow-wildcard-with-all =no
352
365
@@ -408,14 +421,24 @@ confidence=HIGH,
408
421
# --enable=similarities". If you want to run only the classes checker, but have
409
422
# no Warning level messages displayed, use "--disable=all --enable=classes
410
423
# --disable=W".
411
- disable =duplicate-code,
424
+ disable =raw-checker-failed,
425
+ bad-inline-option,
426
+ locally-disabled,
427
+ file-ignored,
428
+ suppressed-message,
429
+ useless-suppression,
430
+ deprecated-pragma,
431
+ use-symbolic-message-instead,
432
+ use-implicit-booleaness-not-comparison-to-string,
433
+ use-implicit-booleaness-not-comparison-to-zero,
434
+ duplicate-code,
412
435
consider-using-with
413
436
414
437
# Enable the message, report, category or checker with the given id(s). You can
415
438
# either give multiple identifier separated by comma (,) or put this option
416
439
# multiple time (only on the command line, not in the configuration file where
417
440
# it should appear only once). See also the "--disable" option for examples.
418
- enable =c-extension-no-member
441
+ enable =
419
442
420
443
421
444
[METHOD_ARGS]
@@ -461,8 +484,9 @@ evaluation=max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor
461
484
# used to format the message information. See doc for all details.
462
485
msg-template =
463
486
464
- # Set the output format. Available formats are text, parseable, colorized, json
465
- # and msvs (visual studio). You can also give a reporter class, e.g.
487
+ # Set the output format. Available formats are: text, parseable, colorized,
488
+ # json2 (improved json format), json (old json format) and msvs (visual
489
+ # studio). You can also give a reporter class, e.g.
466
490
# mypackage.mymodule.MyReporterClass.
467
491
# output-format=
468
492
@@ -496,8 +520,8 @@ min-similarity-lines=4
496
520
# Limits count of emitted suggestions for spelling mistakes.
497
521
max-spelling-suggestions =4
498
522
499
- # Spelling dictionary name. Available dictionaries: none. To make it work,
500
- # install the ' python-enchant' package.
523
+ # Spelling dictionary name. No available dictionaries : You need to install
524
+ # both the python package and the system dependency for enchant to work .
501
525
spelling-dict =
502
526
503
527
# List of comma separated words that should be considered directives if they
0 commit comments