5
5
# run arbitrary code.
6
6
extension-pkg-whitelist =
7
7
8
+ # Specify a score threshold to be exceeded before program exits with error.
9
+ fail-under =10.0
10
+
8
11
# Add files or directories to the blacklist. They should be base names, not
9
12
# paths.
10
13
ignore =CVS
@@ -26,16 +29,13 @@ jobs=1
26
29
# complex, nested conditions.
27
30
limit-inference-results =100
28
31
29
- # List of plugins (as comma separated values of python modules names) to load,
32
+ # List of plugins (as comma separated values of python module names) to load,
30
33
# usually to register additional checkers.
31
34
load-plugins =
32
35
33
36
# Pickle collected data for later comparisons.
34
37
persistent =yes
35
38
36
- # Specify a configuration file.
37
- # rcfile=
38
-
39
39
# When enabled, pylint would attempt to guess common misconfiguration and emit
40
40
# user-friendly hints instead of false-positive error messages.
41
41
suggestion-mode =yes
@@ -139,12 +139,10 @@ disable=print-statement,
139
139
deprecated-sys-function,
140
140
exception-escape,
141
141
comprehension-escape,
142
- no-else-return,
143
142
no-member,
144
- useless-object-inheritance,
143
+ no-else-return,
144
+ duplicate-code,
145
145
inconsistent-return-statements,
146
- ungrouped-imports,
147
- not-callable,
148
146
149
147
# Enable the message, report, category or checker with the given id(s). You can
150
148
# either give multiple identifier separated by comma (,) or put this option
@@ -155,11 +153,11 @@ enable=c-extension-no-member
155
153
156
154
[REPORTS]
157
155
158
- # Python expression which should return a note less than 10 (10 is the highest
159
- # note). You have access to the variables errors warning, statement which
160
- # respectively contain the number of errors / warnings messages and the total
161
- # number of statements analyzed. This is used by the global evaluation report
162
- # (RP0004).
156
+ # Python expression which should return a score less than or equal to 10. You
157
+ # have access to the variables 'error', ' warning', 'refactor', and 'convention'
158
+ # which contain the number of messages in each category, as well as 'statement'
159
+ # which is the total number of statements analyzed. This score is used by the
160
+ # global evaluation report (RP0004).
163
161
evaluation =10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
164
162
165
163
# Template used to display messages. This is a python new-style format string
@@ -181,7 +179,7 @@ score=yes
181
179
[REFACTORING]
182
180
183
181
# Maximum number of nested blocks for function / method body
184
- max-nested-blocks =6
182
+ max-nested-blocks =5
185
183
186
184
# Complete name of functions that never returns. When checking for
187
185
# inconsistent-return-statements if a never returning function is called then
@@ -192,8 +190,8 @@ never-returning-functions=sys.exit
192
190
193
191
[LOGGING]
194
192
195
- # Format style used to check logging format string . `old` means using %
196
- # formatting, while `new` is for `{}` formatting.
193
+ # The type of string formatting that logging methods do . `old` means using %
194
+ # formatting, `new` is for `{}` formatting.
197
195
logging-format-style =old
198
196
199
197
# Logging modules to check that the string format arguments are in logging
@@ -206,18 +204,18 @@ logging-modules=logging
206
204
# Limits count of emitted suggestions for spelling mistakes.
207
205
max-spelling-suggestions =4
208
206
209
- # Spelling dictionary name. Available dictionaries: none. To make it working
210
- # install python-enchant package. .
207
+ # Spelling dictionary name. Available dictionaries: none. To make it work,
208
+ # install the python-enchant package.
211
209
spelling-dict =
212
210
213
211
# List of comma separated words that should not be checked.
214
212
spelling-ignore-words =
215
213
216
- # A path to a file that contains private dictionary; one word per line.
214
+ # A path to a file that contains the private dictionary; one word per line.
217
215
spelling-private-dict-file =
218
216
219
- # Tells whether to store unknown words to indicated private dictionary in
220
- # --spelling-private-dict-file option instead of raising a message.
217
+ # Tells whether to store unknown words to the private dictionary (see the
218
+ # --spelling-private-dict-file option) instead of raising a message.
221
219
spelling-store-unknown-words =no
222
220
223
221
@@ -228,6 +226,9 @@ notes=FIXME,
228
226
XXX,
229
227
TODO
230
228
229
+ # Regular expression of note tags to take in consideration.
230
+ # notes-rgx=
231
+
231
232
232
233
[TYPECHECK]
233
234
@@ -264,7 +265,7 @@ ignored-classes=optparse.Values,thread._local,_thread._local
264
265
265
266
# List of module names for which member attributes should not be checked
266
267
# (useful for modules/projects where namespaces are manipulated during runtime
267
- # and thus existing member attributes cannot be deduced by static analysis. It
268
+ # and thus existing member attributes cannot be deduced by static analysis) . It
268
269
# supports qualified module names, as well as Unix pattern matching.
269
270
ignored-modules =
270
271
@@ -280,6 +281,9 @@ missing-member-hint-distance=1
280
281
# showing a hint for a missing member.
281
282
missing-member-max-choices =1
282
283
284
+ # List of decorators that change the signature of a decorated function.
285
+ signature-mutators =
286
+
283
287
284
288
[VARIABLES]
285
289
@@ -330,14 +334,7 @@ indent-string=' '
330
334
max-line-length =100
331
335
332
336
# Maximum number of lines in a module.
333
- max-module-lines =2500
334
-
335
- # List of optional constructs for which whitespace checking is disabled. `dict-
336
- # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
337
- # `trailing-comma` allows a space between comma and closing bracket: (a, ).
338
- # `empty-line` allows space-only lines.
339
- no-space-check =trailing-comma,
340
- dict-separator
337
+ max-module-lines =3000
341
338
342
339
# Allow the body of a class to be on the same line as the declaration if body
343
340
# contains single statement.
@@ -357,10 +354,10 @@ ignore-comments=yes
357
354
ignore-docstrings =yes
358
355
359
356
# Ignore imports when computing similarities.
360
- ignore-imports =no
357
+ ignore-imports =yes
361
358
362
359
# Minimum lines number of a similarity.
363
- min-similarity-lines =9
360
+ min-similarity-lines =4
364
361
365
362
366
363
[BASIC]
@@ -387,6 +384,10 @@ bad-names=foo,
387
384
tutu,
388
385
tata
389
386
387
+ # Bad variable names regexes, separated by a comma. If names match any regex,
388
+ # they will always be refused
389
+ bad-names-rgxs =
390
+
390
391
# Naming style matching correct class attribute names.
391
392
class-attribute-naming-style =any
392
393
@@ -427,6 +428,10 @@ good-names=i,
427
428
Run,
428
429
_
429
430
431
+ # Good variable names regexes, separated by a comma. If names match any regex,
432
+ # they will always be accepted
433
+ good-names-rgxs =
434
+
430
435
# Include a hint for the correct naming format with invalid-name.
431
436
include-naming-hint =no
432
437
@@ -474,14 +479,21 @@ variable-naming-style=snake_case
474
479
475
480
[STRING]
476
481
477
- # This flag controls whether the implicit-str-concat-in-sequence should
478
- # generate a warning on implicit string concatenation in sequences defined over
479
- # several lines.
482
+ # This flag controls whether inconsistent-quotes generates a warning when the
483
+ # character used as a quote delimiter is used inconsistently within a module.
484
+ check-quote-consistency =no
485
+
486
+ # This flag controls whether the implicit-str-concat should generate a warning
487
+ # on implicit string concatenation in sequences defined over several lines.
480
488
check-str-concat-over-line-jumps =no
481
489
482
490
483
491
[IMPORTS]
484
492
493
+ # List of modules that can be imported at any level, not just the top level
494
+ # one.
495
+ allow-any-import-level =
496
+
485
497
# Allow wildcard imports from modules that define __all__.
486
498
allow-wildcard-with-all =no
487
499
@@ -512,13 +524,17 @@ known-standard-library=
512
524
# Force import order to recognize a module as part of a third party library.
513
525
known-third-party =enchant
514
526
527
+ # Couples of modules and preferred modules, separated by a comma.
528
+ preferred-modules =
529
+
515
530
516
531
[CLASSES]
517
532
518
533
# List of method names used to declare (i.e. assign) instance attributes.
519
534
defining-attr-methods =__init__,
520
535
__new__,
521
- setUp
536
+ setUp,
537
+ __post_init__
522
538
523
539
# List of member names, which should be excluded from the protected access
524
540
# warning.
@@ -543,7 +559,7 @@ max-args=8
543
559
# Maximum number of attributes for a class (see R0902).
544
560
max-attributes =8
545
561
546
- # Maximum number of boolean expressions in an if statement.
562
+ # Maximum number of boolean expressions in an if statement (see R0916) .
547
563
max-bool-expr =5
548
564
549
565
# Maximum number of branch for function / method body.
0 commit comments