3
3
# A comma-separated list of package or module names from where C extensions may
4
4
# be loaded. Extensions are loading into the active Python interpreter and may
5
5
# run arbitrary code.
6
+ extension-pkg-allow-list =
7
+
8
+ # A comma-separated list of package or module names from where C extensions may
9
+ # be loaded. Extensions are loading into the active Python interpreter and may
10
+ # run arbitrary code. (This is an alternative name to extension-pkg-allow-list
11
+ # for backward compatibility.)
6
12
extension-pkg-whitelist =
7
13
8
- # Add files or directories to the blacklist. They should be base names, not
9
- # paths.
10
- ignore =native_client/kenlm
14
+ # Specify a score threshold to be exceeded before program exits with error.
15
+ fail-under =10.0
11
16
12
- # Add files or directories matching the regex patterns to the blacklist. The
13
- # regex matches against base names, not paths.
17
+ # Files or directories to be skipped. They should be base names, not paths.
18
+ ignore =CVS
19
+
20
+ # Files or directories matching the regex patterns are skipped. The regex
21
+ # matches against base names, not paths.
14
22
ignore-patterns =
15
23
16
24
# Python code to execute, usually for sys.path manipulation such as
@@ -26,16 +34,13 @@ jobs=1
26
34
# complex, nested conditions.
27
35
limit-inference-results =100
28
36
29
- # List of plugins (as comma separated values of python modules names) to load,
37
+ # List of plugins (as comma separated values of python module names) to load,
30
38
# usually to register additional checkers.
31
39
load-plugins =
32
40
33
41
# Pickle collected data for later comparisons.
34
42
persistent =yes
35
43
36
- # Specify a configuration file.
37
- # rcfile=
38
-
39
44
# When enabled, pylint would attempt to guess common misconfiguration and emit
40
45
# user-friendly hints instead of false-positive error messages.
41
46
suggestion-mode =yes
@@ -60,16 +65,7 @@ confidence=
60
65
# --enable=similarities". If you want to run only the classes checker, but have
61
66
# no Warning level messages displayed, use "--disable=all --enable=classes
62
67
# --disable=W".
63
- disable =missing-docstring,
64
- line-too-long,
65
- wrong-import-order,
66
- ungrouped-imports,
67
- wrong-import-position,
68
- import-error,
69
- no-name-in-module,
70
- no-member,
71
- unsubscriptable-object,
72
- print-statement,
68
+ disable =print-statement,
73
69
parameter-unpacking,
74
70
unpacking-in-except,
75
71
old-raise-syntax,
@@ -87,12 +83,6 @@ disable=missing-docstring,
87
83
useless-suppression,
88
84
deprecated-pragma,
89
85
use-symbolic-message-instead,
90
- useless-object-inheritance,
91
- too-few-public-methods,
92
- too-many-branches,
93
- too-many-arguments,
94
- too-many-locals,
95
- too-many-statements,
96
86
apply-builtin,
97
87
basestring-builtin,
98
88
buffer-builtin,
@@ -153,7 +143,8 @@ disable=missing-docstring,
153
143
xreadlines-attribute,
154
144
deprecated-sys-function,
155
145
exception-escape,
156
- comprehension-escape
146
+ comprehension-escape,
147
+ format
157
148
158
149
# Enable the message, report, category or checker with the given id(s). You can
159
150
# either give multiple identifier separated by comma (,) or put this option
@@ -164,11 +155,11 @@ enable=c-extension-no-member
164
155
165
156
[REPORTS]
166
157
167
- # Python expression which should return a note less than 10 (10 is the highest
168
- # note). You have access to the variables errors warning, statement which
169
- # respectively contain the number of errors / warnings messages and the total
170
- # number of statements analyzed. This is used by the global evaluation report
171
- # (RP0004).
158
+ # Python expression which should return a score less than or equal to 10. You
159
+ # have access to the variables 'error', ' warning', 'refactor', and 'convention'
160
+ # which contain the number of messages in each category, as well as 'statement'
161
+ # which is the total number of statements analyzed. This score is used by the
162
+ # global evaluation report (RP0004).
172
163
evaluation =10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
173
164
174
165
# Template used to display messages. This is a python new-style format string
@@ -196,13 +187,13 @@ max-nested-blocks=5
196
187
# inconsistent-return-statements if a never returning function is called then
197
188
# it will be considered as an explicit return statement and no message will be
198
189
# printed.
199
- never-returning-functions =sys.exit
190
+ never-returning-functions =sys.exit,argparse.parse_error
200
191
201
192
202
193
[LOGGING]
203
194
204
- # Format style used to check logging format string . `old` means using %
205
- # formatting, while `new` is for `{}` formatting.
195
+ # The type of string formatting that logging methods do . `old` means using %
196
+ # formatting, `new` is for `{}` formatting.
206
197
logging-format-style =old
207
198
208
199
# Logging modules to check that the string format arguments are in logging
@@ -215,18 +206,22 @@ logging-modules=logging
215
206
# Limits count of emitted suggestions for spelling mistakes.
216
207
max-spelling-suggestions =4
217
208
218
- # Spelling dictionary name. Available dictionaries: none. To make it working
219
- # install python-enchant package. .
209
+ # Spelling dictionary name. Available dictionaries: none. To make it work,
210
+ # install the ' python-enchant' package.
220
211
spelling-dict =
221
212
213
+ # List of comma separated words that should be considered directives if they
214
+ # appear and the beginning of a comment and should not be checked.
215
+ spelling-ignore-comment-directives =fmt: on,fmt: off,noqa:,noqa,nosec,isort:skip,mypy:
216
+
222
217
# List of comma separated words that should not be checked.
223
218
spelling-ignore-words =
224
219
225
- # A path to a file that contains private dictionary; one word per line.
220
+ # A path to a file that contains the private dictionary; one word per line.
226
221
spelling-private-dict-file =
227
222
228
- # Tells whether to store unknown words to indicated private dictionary in
229
- # --spelling-private-dict-file option instead of raising a message.
223
+ # Tells whether to store unknown words to the private dictionary (see the
224
+ # --spelling-private-dict-file option) instead of raising a message.
230
225
spelling-store-unknown-words =no
231
226
232
227
@@ -237,6 +232,9 @@ notes=FIXME,
237
232
XXX,
238
233
TODO
239
234
235
+ # Regular expression of note tags to take in consideration.
236
+ # notes-rgx=
237
+
240
238
241
239
[TYPECHECK]
242
240
@@ -273,7 +271,7 @@ ignored-classes=optparse.Values,thread._local,_thread._local
273
271
274
272
# List of module names for which member attributes should not be checked
275
273
# (useful for modules/projects where namespaces are manipulated during runtime
276
- # and thus existing member attributes cannot be deduced by static analysis. It
274
+ # and thus existing member attributes cannot be deduced by static analysis) . It
277
275
# supports qualified module names, as well as Unix pattern matching.
278
276
ignored-modules =
279
277
@@ -289,6 +287,9 @@ missing-member-hint-distance=1
289
287
# showing a hint for a missing member.
290
288
missing-member-max-choices =1
291
289
290
+ # List of decorators that change the signature of a decorated function.
291
+ signature-mutators =
292
+
292
293
293
294
[VARIABLES]
294
295
@@ -299,6 +300,9 @@ additional-builtins=
299
300
# Tells whether unused global variables should be treated as a violation.
300
301
allow-global-unused-variables =yes
301
302
303
+ # List of names allowed to shadow builtins
304
+ allowed-redefined-builtins =
305
+
302
306
# List of strings which can identify a callback function by name. A callback
303
307
# name must start or end with one of those strings.
304
308
callbacks =cb_,
@@ -341,13 +345,6 @@ max-line-length=100
341
345
# Maximum number of lines in a module.
342
346
max-module-lines =1000
343
347
344
- # List of optional constructs for which whitespace checking is disabled. `dict-
345
- # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
346
- # `trailing-comma` allows a space between comma and closing bracket: (a, ).
347
- # `empty-line` allows space-only lines.
348
- no-space-check =trailing-comma,
349
- dict-separator
350
-
351
348
# Allow the body of a class to be on the same line as the declaration if body
352
349
# contains single statement.
353
350
single-line-class-stmt =no
@@ -379,7 +376,7 @@ argument-naming-style=snake_case
379
376
380
377
# Regular expression matching correct argument names. Overrides argument-
381
378
# naming-style.
382
- argument-rgx =[a-z_][a-z0-9_]{0,30}$
379
+ # argument-rgx=
383
380
384
381
# Naming style matching correct attribute names.
385
382
attr-naming-style =snake_case
@@ -389,7 +386,16 @@ attr-naming-style=snake_case
389
386
# attr-rgx=
390
387
391
388
# Bad variable names which should always be refused, separated by a comma.
392
- bad-names =
389
+ bad-names =foo,
390
+ bar,
391
+ baz,
392
+ toto,
393
+ tutu,
394
+ tata
395
+
396
+ # Bad variable names regexes, separated by a comma. If names match any regex,
397
+ # they will always be refused
398
+ bad-names-rgxs =
393
399
394
400
# Naming style matching correct class attribute names.
395
401
class-attribute-naming-style =any
@@ -398,6 +404,13 @@ class-attribute-naming-style=any
398
404
# attribute-naming-style.
399
405
# class-attribute-rgx=
400
406
407
+ # Naming style matching correct class constant names.
408
+ class-const-naming-style =UPPER_CASE
409
+
410
+ # Regular expression matching correct class constant names. Overrides class-
411
+ # const-naming-style.
412
+ # class-const-rgx=
413
+
401
414
# Naming style matching correct class names.
402
415
class-naming-style =PascalCase
403
416
@@ -427,11 +440,14 @@ function-naming-style=snake_case
427
440
good-names =i,
428
441
j,
429
442
k,
430
- x,
431
443
ex,
432
444
Run,
433
445
_
434
446
447
+ # Good variable names regexes, separated by a comma. If names match any regex,
448
+ # they will always be accepted
449
+ good-names-rgxs =
450
+
435
451
# Include a hint for the correct naming format with invalid-name.
436
452
include-naming-hint =no
437
453
@@ -474,19 +490,26 @@ variable-naming-style=snake_case
474
490
475
491
# Regular expression matching correct variable names. Overrides variable-
476
492
# naming-style.
477
- variable-rgx =[a-z_][a-z0-9_]{0,30}$
493
+ # variable-rgx=
478
494
479
495
480
496
[STRING]
481
497
482
- # This flag controls whether the implicit-str-concat-in-sequence should
483
- # generate a warning on implicit string concatenation in sequences defined over
484
- # several lines.
498
+ # This flag controls whether inconsistent-quotes generates a warning when the
499
+ # character used as a quote delimiter is used inconsistently within a module.
500
+ check-quote-consistency =no
501
+
502
+ # This flag controls whether the implicit-str-concat should generate a warning
503
+ # on implicit string concatenation in sequences defined over several lines.
485
504
check-str-concat-over-line-jumps =no
486
505
487
506
488
507
[IMPORTS]
489
508
509
+ # List of modules that can be imported at any level, not just the top level
510
+ # one.
511
+ allow-any-import-level =
512
+
490
513
# Allow wildcard imports from modules that define __all__.
491
514
allow-wildcard-with-all =no
492
515
@@ -498,16 +521,17 @@ analyse-fallback-blocks=no
498
521
# Deprecated modules which should not be used, separated by a comma.
499
522
deprecated-modules =optparse,tkinter.tix
500
523
501
- # Create a graph of external dependencies in the given file (report RP0402 must
502
- # not be disabled).
524
+ # Output a graph (.gv or any supported image format) of external dependencies
525
+ # to the given file (report RP0402 must not be disabled).
503
526
ext-import-graph =
504
527
505
- # Create a graph of every (i.e. internal and external) dependencies in the
506
- # given file (report RP0402 must not be disabled).
528
+ # Output a graph (.gv or any supported image format) of all (i.e. internal and
529
+ # external) dependencies to the given file (report RP0402 must not be
530
+ # disabled).
507
531
import-graph =
508
532
509
- # Create a graph of internal dependencies in the given file (report RP0402 must
510
- # not be disabled).
533
+ # Output a graph (.gv or any supported image format) of internal dependencies
534
+ # to the given file (report RP0402 must not be disabled).
511
535
int-import-graph =
512
536
513
537
# Force import order to recognize a module as part of the standard
@@ -517,13 +541,20 @@ known-standard-library=
517
541
# Force import order to recognize a module as part of a third party library.
518
542
known-third-party =enchant
519
543
544
+ # Couples of modules and preferred modules, separated by a comma.
545
+ preferred-modules =
546
+
520
547
521
548
[CLASSES]
522
549
550
+ # Warn about protected attribute access inside special methods
551
+ check-protected-access-in-special-methods =no
552
+
523
553
# List of method names used to declare (i.e. assign) instance attributes.
524
554
defining-attr-methods =__init__,
525
555
__new__,
526
- setUp
556
+ setUp,
557
+ __post_init__
527
558
528
559
# List of member names, which should be excluded from the protected access
529
560
# warning.
@@ -548,7 +579,7 @@ max-args=5
548
579
# Maximum number of attributes for a class (see R0902).
549
580
max-attributes =7
550
581
551
- # Maximum number of boolean expressions in an if statement.
582
+ # Maximum number of boolean expressions in an if statement (see R0916) .
552
583
max-bool-expr =5
553
584
554
585
# Maximum number of branch for function / method body.
0 commit comments