Pin pip to 20.3.3 and disable tmpfs in DIB
[ta/build-tools.git] / pylintrc
1 [MASTER]
2
3 # A comma-separated list of package or module names from where C extensions may
4 # be loaded. Extensions are loading into the active Python interpreter and may
5 # run arbitrary code
6 extension-pkg-whitelist=
7
8 # Add files or directories to the blacklist. They should be base names, not
9 # paths.
10 ignore=CVS
11
12 # Add files or directories matching the regex patterns to the blacklist. The
13 # regex matches against base names, not paths.
14 ignore-patterns=
15
16 # Python code to execute, usually for sys.path manipulation such as
17 # pygtk.require().
18 #init-hook=
19
20 # Use multiple processes to speed up Pylint.
21 jobs=1
22
23 # List of plugins (as comma separated values of python modules names) to load,
24 # usually to register additional checkers.
25 load-plugins=
26
27 # Pickle collected data for later comparisons.
28 persistent=yes
29
30 # Specify a configuration file.
31 #rcfile=
32
33 # Allow loading of arbitrary C extensions. Extensions are imported into the
34 # active Python interpreter and may run arbitrary code.
35 unsafe-load-any-extension=no
36
37
38 [MESSAGES CONTROL]
39
40 # Only show warnings with the listed confidence levels. Leave empty to show
41 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
42 confidence=
43
44 # Disable the message, report, category or checker with the given id(s). You
45 # can either give multiple identifiers separated by comma (,) or put this
46 # option multiple times (only on the command line, not in the configuration
47 # file where it should appear only once).You can also use "--disable=all" to
48 # disable everything first and then reenable specific checks. For example, if
49 # you want to run only the similarities checker, you can use "--disable=all
50 # --enable=similarities". If you want to run only the classes checker, but have
51 # no Warning level messages displayed, use"--disable=all --enable=classes
52 # --disable=W"
53 disable=print-statement,parameter-unpacking,unpacking-in-except,old-raise-syntax,
54     backtick,long-suffix,old-ne-operator,old-octal-literal,import-star-module-level,
55     raw-checker-failed,bad-inline-option,locally-disabled,locally-enabled,
56     file-ignored,suppressed-message,useless-suppression,deprecated-pragma,
57     apply-builtin,basestring-builtin,buffer-builtin,cmp-builtin,coerce-builtin,
58     execfile-builtin,file-builtin,long-builtin,raw_input-builtin,reduce-builtin,
59     standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,
60     delslice-method,getslice-method,setslice-method,no-absolute-import,old-division,
61     dict-iter-method,dict-view-method,next-method-called,metaclass-assignment,
62     indexing-exception,raising-string,reload-builtin,oct-method,hex-method,
63     nonzero-method,cmp-method,input-builtin,round-builtin,intern-builtin,
64     unichr-builtin,map-builtin-not-iterating,zip-builtin-not-iterating,
65     range-builtin-not-iterating,filter-builtin-not-iterating,using-cmp-argument,
66     eq-without-hash,div-method,idiv-method,rdiv-method,exception-message-attribute,
67     invalid-str-codec,sys-max-int,bad-python3-import,deprecated-string-function,
68     deprecated-str-translate-call,
69     missing-docstring,
70     too-few-public-methods,
71     superfluous-parens,
72     logging-format-interpolation
73
74 # Enable the message, report, category or checker with the given id(s). You can
75 # either give multiple identifier separated by comma (,) or put this option
76 # multiple time (only on the command line, not in the configuration file where
77 # it should appear only once). See also the "--disable" option for examples.
78 enable=
79
80
81 [REPORTS]
82
83 # Python expression which should return a note less than 10 (10 is the highest
84 # note). You have access to the variables errors warning, statement which
85 # respectively contain the number of errors / warnings messages and the total
86 # number of statements analyzed. This is used by the global evaluation report
87 # (RP0004).
88 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
89
90 # Template used to display messages. This is a python new-style format string
91 # used to format the message information. See doc for all details
92 #msg-template=
93
94 # Set the output format. Available formats are text, parseable, colorized, json
95 # and msvs (visual studio).You can also give a reporter class, eg
96 # mypackage.mymodule.MyReporterClass.
97 output-format=text
98
99 # Tells whether to display a full report or only the messages
100 reports=no
101
102 # Activate the evaluation score.
103 score=yes
104
105
106 [REFACTORING]
107
108 # Maximum number of nested blocks for function / method body
109 max-nested-blocks=5
110
111
112 [LOGGING]
113
114 # Logging modules to check that the string format arguments are in logging
115 # function parameter format
116 logging-modules=logging
117
118
119 [TYPECHECK]
120
121 # List of decorators that produce context managers, such as
122 # contextlib.contextmanager. Add to this list to register other decorators that
123 # produce valid context managers.
124 contextmanager-decorators=contextlib.contextmanager
125
126 # List of members which are set dynamically and missed by pylint inference
127 # system, and so shouldn't trigger E1101 when accessed. Python regular
128 # expressions are accepted.
129 generated-members=
130
131 # Tells whether missing members accessed in mixin class should be ignored. A
132 # mixin class is detected if its name ends with "mixin" (case insensitive).
133 ignore-mixin-members=yes
134
135 # This flag controls whether pylint should warn about no-member and similar
136 # checks whenever an opaque object is returned when inferring. The inference
137 # can return multiple potential results while evaluating a Python object, but
138 # some branches might not be evaluated, which results in partial inference. In
139 # that case, it might be useful to still emit no-member and other checks for
140 # the rest of the inferred objects.
141 ignore-on-opaque-inference=yes
142
143 # List of class names for which member attributes should not be checked (useful
144 # for classes with dynamically set attributes). This supports the use of
145 # qualified names.
146 ignored-classes=optparse.Values,thread._local,_thread._local
147
148 # List of module names for which member attributes should not be checked
149 # (useful for modules/projects where namespaces are manipulated during runtime
150 # and thus existing member attributes cannot be deduced by static analysis. It
151 # supports qualified module names, as well as Unix pattern matching.
152 ignored-modules=
153
154 # Show a hint with possible names when a member name was not found. The aspect
155 # of finding the hint is based on edit distance.
156 missing-member-hint=yes
157
158 # The minimum edit distance a name should have in order to be considered a
159 # similar match for a missing member name.
160 missing-member-hint-distance=1
161
162 # The total number of similar names that should be taken in consideration when
163 # showing a hint for a missing member.
164 missing-member-max-choices=1
165
166
167 [VARIABLES]
168
169 # List of additional names supposed to be defined in builtins. Remember that
170 # you should avoid to define new builtins when possible.
171 additional-builtins=
172
173 # Tells whether unused global variables should be treated as a violation.
174 allow-global-unused-variables=yes
175
176 # List of strings which can identify a callback function by name. A callback
177 # name must start or end with one of those strings.
178 callbacks=cb_,_cb
179
180 # A regular expression matching the name of dummy variables (i.e. expectedly
181 # not used).
182 dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
183
184 # Argument names that match this expression will be ignored. Default to name
185 # with leading underscore
186 ignored-argument-names=_.*|^ignored_|^unused_
187
188 # Tells whether we should check for unused import in __init__ files.
189 init-import=no
190
191 # List of qualified module names which can have objects that can redefine
192 # builtins.
193 redefining-builtins-modules=six.moves,future.builtins
194
195
196 [MISCELLANEOUS]
197
198 # List of note tags to take in consideration, separated by a comma.
199 notes=FIXME,XXX,TODO
200
201
202 [SIMILARITIES]
203
204 # Ignore comments when computing similarities.
205 ignore-comments=yes
206
207 # Ignore docstrings when computing similarities.
208 ignore-docstrings=yes
209
210 # Ignore imports when computing similarities.
211 ignore-imports=no
212
213 # Minimum lines number of a similarity.
214 min-similarity-lines=4
215
216
217 [BASIC]
218
219 # Naming hint for argument names
220 argument-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
221
222 # Regular expression matching correct argument names
223 argument-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
224
225 # Naming hint for attribute names
226 attr-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
227
228 # Regular expression matching correct attribute names
229 attr-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
230
231 # Bad variable names which should always be refused, separated by a comma
232 bad-names=foo,bar,baz,toto,tutu,tata
233
234 # Naming hint for class attribute names
235 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
236
237 # Regular expression matching correct class attribute names
238 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
239
240 # Naming hint for class names
241 class-name-hint=[A-Z_][a-zA-Z0-9]+$
242
243 # Regular expression matching correct class names
244 class-rgx=[A-Z_][a-zA-Z0-9]+$
245
246 # Naming hint for constant names
247 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
248
249 # Regular expression matching correct constant names
250 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
251
252 # Minimum line length for functions/classes that require docstrings, shorter
253 # ones are exempt.
254 docstring-min-length=-1
255
256 # Naming hint for function names
257 function-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
258
259 # Regular expression matching correct function names
260 function-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
261
262 # Good variable names which should always be accepted, separated by a comma
263 good-names=i,j,k,ex,Run,_
264
265 # Include a hint for the correct naming format with invalid-name
266 include-naming-hint=no
267
268 # Naming hint for inline iteration names
269 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
270
271 # Regular expression matching correct inline iteration names
272 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
273
274 # Naming hint for method names
275 method-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
276
277 # Regular expression matching correct method names
278 method-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
279
280 # Naming hint for module names
281 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
282
283 # Regular expression matching correct module names
284 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
285
286 # Colon-delimited sets of names that determine each other's naming style when
287 # the name regexes allow several styles.
288 name-group=
289
290 # Regular expression which should only match function or class names that do
291 # not require a docstring.
292 no-docstring-rgx=^_
293
294 # List of decorators that produce properties, such as abc.abstractproperty. Add
295 # to this list to register other decorators that produce valid properties.
296 property-classes=abc.abstractproperty
297
298 # Naming hint for variable names
299 variable-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
300
301 # Regular expression matching correct variable names
302 variable-rgx=(([a-z][a-z0-9_]{0,30})|(_[a-z0-9_]*))$
303
304
305 [SPELLING]
306
307 # Spelling dictionary name. Available dictionaries: none. To make it working
308 # install python-enchant package.
309 spelling-dict=
310
311 # List of comma separated words that should not be checked.
312 spelling-ignore-words=
313
314 # A path to a file that contains private dictionary; one word per line.
315 spelling-private-dict-file=
316
317 # Tells whether to store unknown words to indicated private dictionary in
318 # --spelling-private-dict-file option instead of raising a message.
319 spelling-store-unknown-words=no
320
321
322 [FORMAT]
323
324 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
325 expected-line-ending-format=
326
327 # Regexp for a line that is allowed to be longer than the limit.
328 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
329
330 # Number of spaces of indent required inside a hanging  or continued line.
331 indent-after-paren=4
332
333 # String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
334 # tab).
335 indent-string='    '
336
337 # Maximum number of characters on a single line.
338 max-line-length=100
339
340 # Maximum number of lines in a module
341 max-module-lines=1000
342
343 # List of optional constructs for which whitespace checking is disabled. `dict-
344 # separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
345 # `trailing-comma` allows a space between comma and closing bracket: (a, ).
346 # `empty-line` allows space-only lines.
347 no-space-check=trailing-comma,dict-separator
348
349 # Allow the body of a class to be on the same line as the declaration if body
350 # contains single statement.
351 single-line-class-stmt=no
352
353 # Allow the body of an if to be on the same line as the test if there is no
354 # else.
355 single-line-if-stmt=no
356
357
358 [CLASSES]
359
360 # List of method names used to declare (i.e. assign) instance attributes.
361 defining-attr-methods=__init__,__new__,setUp
362
363 # List of member names, which should be excluded from the protected access
364 # warning.
365 exclude-protected=_asdict,_fields,_replace,_source,_make
366
367 # List of valid names for the first argument in a class method.
368 valid-classmethod-first-arg=cls
369
370 # List of valid names for the first argument in a metaclass class method.
371 valid-metaclass-classmethod-first-arg=mcs
372
373
374 [DESIGN]
375
376 # Maximum number of arguments for function / method
377 max-args=5
378
379 # Maximum number of attributes for a class (see R0902).
380 max-attributes=7
381
382 # Maximum number of boolean expressions in a if statement
383 max-bool-expr=5
384
385 # Maximum number of branch for function / method body
386 max-branches=12
387
388 # Maximum number of locals for function / method body
389 max-locals=15
390
391 # Maximum number of parents for a class (see R0901).
392 max-parents=7
393
394 # Maximum number of public methods for a class (see R0904).
395 max-public-methods=20
396
397 # Maximum number of return / yield for function / method body
398 max-returns=6
399
400 # Maximum number of statements in function / method body
401 max-statements=50
402
403 # Minimum number of public methods for a class (see R0903).
404 min-public-methods=2
405
406
407 [IMPORTS]
408
409 # Allow wildcard imports from modules that define __all__.
410 allow-wildcard-with-all=no
411
412 # Analyse import fallback blocks. This can be used to support both Python 2 and
413 # 3 compatible code, which means that the block might have code that exists
414 # only in one or another interpreter, leading to false positives when analysed.
415 analyse-fallback-blocks=no
416
417 # Deprecated modules which should not be used, separated by a comma
418 deprecated-modules=optparse,tkinter.tix
419
420 # Create a graph of external dependencies in the given file (report RP0402 must
421 # not be disabled)
422 ext-import-graph=
423
424 # Create a graph of every (i.e. internal and external) dependencies in the
425 # given file (report RP0402 must not be disabled)
426 import-graph=
427
428 # Create a graph of internal dependencies in the given file (report RP0402 must
429 # not be disabled)
430 int-import-graph=
431
432 # Force import order to recognize a module as part of the standard
433 # compatibility libraries.
434 known-standard-library=
435
436 # Force import order to recognize a module as part of a third party library.
437 known-third-party=enchant
438
439
440 [EXCEPTIONS]
441
442 # Exceptions that will emit a warning when being caught. Defaults to
443 # "Exception"
444 overgeneral-exceptions=Exception