Debian Codegraph @

.pylintrc

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