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