1
- [MASTER ]
1
+ [MAIN ]
2
2
3
3
# Specify a configuration file.
4
4
# rcfile=
@@ -20,7 +20,9 @@ persistent=no
20
20
21
21
# List of plugins (as comma separated values of python modules names) to load,
22
22
# usually to register additional checkers.
23
- load-plugins =pylint.extensions.docparams,pylint.extensions.docstyle
23
+ load-plugins =pylint.extensions.docparams,
24
+ pylint.extensions.docstyle,
25
+ pylint.extensions.bad_builtin,
24
26
25
27
# Use multiple processes to speed up Pylint.
26
28
jobs =1
@@ -34,15 +36,6 @@ unsafe-load-any-extension=no
34
36
# run arbitrary code
35
37
extension-pkg-whitelist =
36
38
37
- # Allow optimization of some AST trees. This will activate a peephole AST
38
- # optimizer, which will apply various small optimizations. For instance, it can
39
- # be used to obtain the result of joining multiple strings with the addition
40
- # operator. Joining a lot of strings can lead to a maximum recursion error in
41
- # Pylint and this flag can prevent that. It has one side effect, the resulting
42
- # AST will be different than the one from reality. This option is deprecated
43
- # and it will be removed in Pylint 2.0.
44
- optimize-ast =no
45
-
46
39
47
40
[MESSAGES CONTROL]
48
41
@@ -65,21 +58,31 @@ enable=indexing-exception,old-raise-syntax
65
58
# --enable=similarities". If you want to run only the classes checker, but have
66
59
# no Warning level messages displayed, use"--disable=all --enable=classes
67
60
# --disable=W"
68
- disable =design,similarities,no-self-use,attribute-defined-outside-init,locally-disabled,star-args,pointless-except,bad-option-value,global-statement,fixme,suppressed-message,useless-suppression,locally-enabled,file-ignored,missing-type-doc
61
+ disable =design,
62
+ similarities,
63
+ no-self-use,
64
+ attribute-defined-outside-init,
65
+ locally-disabled,
66
+ star-args,
67
+ pointless-except,
68
+ bad-option-value,
69
+ lobal-statement,
70
+ fixme,
71
+ suppressed-message,
72
+ useless-suppression,
73
+ locally-enabled,
74
+ file-ignored,
75
+ missing-type-doc,
76
+ c-extension-no-member,
69
77
70
78
71
79
[REPORTS]
72
80
73
- # Set the output format. Available formats are text, parseable, colorized, msvs
74
- # (visual studio) and html. You can also give a reporter class, eg
75
- # mypackage.mymodule.MyReporterClass.
76
- output-format =text
77
-
78
- # Put messages in a separate file for each module / package specified on the
79
- # command line instead of printing them on stdout. Reports (if any) will be
80
- # written in a file name "pylint_global.[txt|html]". This option is deprecated
81
- # and it will be removed in Pylint 2.0.
82
- files-output =no
81
+ # Set the output format. Available formats are: 'text', 'parseable',
82
+ # 'colorized', 'json2' (improved json format), 'json' (old json format), msvs
83
+ # (visual studio) and 'github' (GitHub actions). You can also give a reporter
84
+ # class, e.g. mypackage.mymodule.MyReporterClass.
85
+ output-format =colorized
83
86
84
87
# Tells whether to display a full report or only the messages
85
88
reports =no
@@ -176,9 +179,12 @@ logging-modules=logging
176
179
good-names =main,_
177
180
178
181
# Bad variable names which should always be refused, separated by a comma
179
- bad-names =
180
-
181
- bad-functions =input,apply,reduce
182
+ bad-names =foo,
183
+ bar,
184
+ baz,
185
+ toto,
186
+ tutu,
187
+ tata
182
188
183
189
# Colon-delimited sets of names that determine each other's naming style when
184
190
# the name regexes allow several styles.
@@ -194,64 +200,33 @@ property-classes=abc.abstractproperty
194
200
# Regular expression matching correct function names
195
201
function-rgx =[a-z_][a-z0-9_]*$
196
202
197
- # Naming hint for function names
198
- function-name-hint =[a-z_][a-z0-9_]*$
199
-
200
203
# Regular expression matching correct variable names
201
204
variable-rgx =[a-z_][a-z0-9_]{2,30}$
202
205
203
- # Naming hint for variable names
204
- variable-name-hint =[a-z_][a-z0-9_]{2,30}$
205
-
206
206
# Regular expression matching correct constant names
207
207
const-rgx =^(_?[A-Z][A-Z0-9_]*|__[a-z0-9_]+__|_?[a-z][a-z0-9_]*)$
208
208
209
-
210
- # Naming hint for constant names
211
- const-name-hint =(([A-Z_][A-Z0-9_]*)|(__.*__))$
212
-
213
209
# Regular expression matching correct attribute names
214
210
attr-rgx =[a-z_][a-z0-9_]{2,30}$
215
211
216
- # Naming hint for attribute names
217
- attr-name-hint =[a-z_][a-z0-9_]{2,30}$
218
-
219
212
# Regular expression matching correct argument names
220
213
argument-rgx =[a-z_][a-z0-9_]{2,30}$
221
214
222
- # Naming hint for argument names
223
- argument-name-hint =[a-z_][a-z0-9_]{2,30}$
224
-
225
215
# Regular expression matching correct class attribute names
226
216
class-attribute-rgx =([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
227
217
228
- # Naming hint for class attribute names
229
- class-attribute-name-hint =([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
230
-
231
218
# Regular expression matching correct inline iteration names
232
219
inlinevar-rgx =[A-Za-z_][A-Za-z0-9_]*$
233
220
234
- # Naming hint for inline iteration names
235
- inlinevar-name-hint =[A-Za-z_][A-Za-z0-9_]*$
236
-
237
221
# Regular expression matching correct class names
238
222
class-rgx =[A-Z_][a-zA-Z0-9]+$
239
223
240
- # Naming hint for class names
241
- class-name-hint =[A-Z_][a-zA-Z0-9]+$
242
-
243
224
# Regular expression matching correct module names
244
225
module-rgx =(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
245
226
246
- # Naming hint for module names
247
- module-name-hint =(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
248
-
249
227
# Regular expression matching correct method names
250
228
method-rgx =[a-z_][a-z0-9_]*$
251
229
252
- # Naming hint for method names
253
- method-name-hint =[a-z_][a-z0-9_]*$
254
-
255
230
# Regular expression which should only match function or class names that do
256
231
# not require a docstring.
257
232
no-docstring-rgx =(__.*__|main)
@@ -294,12 +269,6 @@ ignore-long-lines=^\s*(# )?<?https?://\S+>?$
294
269
# else.
295
270
single-line-if-stmt =no
296
271
297
- # List of optional constructs for which whitespace checking is disabled. `dict-
298
- # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
299
- # `trailing-comma` allows a space between comma and closing bracket: (a, ).
300
- # `empty-line` allows space-only lines.
301
- no-space-check =trailing-comma,dict-separator
302
-
303
272
# Maximum number of lines in a module
304
273
max-module-lines =1000
305
274
@@ -405,6 +374,12 @@ exclude-protected=_asdict,_fields,_replace,_source,_make
405
374
406
375
[EXCEPTIONS]
407
376
408
- # Exceptions that will emit a warning when being caught. Defaults to
409
- # "Exception"
410
- overgeneral-exceptions =Exception
377
+ # Exceptions that will emit a warning when caught.
378
+ overgeneral-exceptions =builtins.BaseException,builtins.Exception
379
+
380
+ [DEPRECATED_BUILTINS]
381
+
382
+ # List of builtins function names that should not be used, separated by a comma
383
+ bad-functions =input,
384
+ apply,
385
+ reduce
0 commit comments