Debian Codegraph @

.pylintrc

raw
1 [MASTER]
2
3 # Specify a configuration file.
4 #rcfile=
5
6 # Python code to execute, usually for sys.path manipulation such as
7 # pygtk.require().
8 #init-hook=
9
10 # Profiled execution.
11 profile=no
12
13 # Add files or directories to the blacklist. They should be base names, not
14 # paths.
15 ignore=CVS
16
17 # Pickle collected data for later comparisons.
18 persistent=yes
19
20 # List of plugins (as comma separated values of python modules names) to load,
21 # usually to register additional checkers.
22 load-plugins=saltpylint.pep8,
23 saltpylint.pep263,
24 saltpylint.strings,
25 saltpylint.fileperms,
26 saltpylint.py3modernize,
27 saltpylint.smartup,
28 saltpylint.minpyver
29
30 # Use multiple processes to speed up Pylint.
31 jobs=1
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 # A comma-separated list of package or module names from where C extensions may
38 # be loaded. Extensions are loading into the active Python interpreter and may
39 # run arbitrary code
40 extension-pkg-whitelist=
41
42 # Allow optimization of some AST trees. This will activate a peephole AST
43 # optimizer, which will apply various small optimizations. For instance, it can
44 # be used to obtain the result of joining multiple strings with the addition
45 # operator. Joining a lot of strings can lead to a maximum recursion error in
46 # Pylint and this flag can prevent that. It has one side effect, the resulting
47 # AST will be different than the one from reality.
48 optimize-ast=no
49
50 # Fileperms Lint Plugin Settings
51 fileperms-default = 0644
52 fileperms-ignore-paths = setup.py
53
54 # Py3 Modernize PyLint Plugin Settings
55 modernize-nofix = libmodernize.fixes.fix_dict_six
56 # Minimum Python Version To Enforce
57 minimum-python-version = 3.4
58
59
60 [REPORTS]
61
62 # Set the output format. Available formats are text, parseable, colorized, msvs
63 # (visual studio) and html. You can also give a reporter class, eg
64 # mypackage.mymodule.MyReporterClass.
65 output-format=text
66
67 # Put messages in a separate file for each module / package specified on the
68 # command line instead of printing them on stdout. Reports (if any) will be
69 # written in a file name "pylint_global.[txt|html]".
70 files-output=no
71
72 # Tells whether to display a full report or only the messages
73 reports=yes
74
75 # Python expression which should return a note less than 10 (10 is the highest
76 # note). You have access to the variables errors warning, statement which
77 # respectively contain the number of errors / warnings messages and the total
78 # number of statements analyzed. This is used by the global evaluation report
79 # (RP0004).
80 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
81
82 # Add a comment according to your evaluation note. This is used by the global
83 # evaluation report (RP0004).
84 comment=no
85
86 # Template used to display messages. This is a python new-style format string
87 # used to format the message information. See doc for all details
88 #msg-template=
89
90
91 [MESSAGES CONTROL]
92
93 # Only show warnings with the listed confidence levels. Leave empty to show
94 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
95 confidence=
96
97 # Enable the message, report, category or checker with the given id(s). You can
98 # either give multiple identifier separated by comma (,) or put this option
99 # multiple time. See also the "--disable" option for examples.
100 #enable=
101
102 # Disable the message, report, category or checker with the given id(s). You
103 # can either give multiple identifiers separated by comma (,) or put this
104 # option multiple times (only on the command line, not in the configuration
105 # file where it should appear only once).You can also use "--disable=all" to
106 # disable everything first and then reenable specific checks. For example, if
107 # you want to run only the similarities checker, you can use "--disable=all
108 # --enable=similarities". If you want to run only the classes checker, but have
109 # no Warning level messages displayed, use"--disable=all --enable=classes
110 # --disable=W"
111 #disable=
112 disable=W0142,
113 C0330,
114 I0011,
115 I0012,
116 W1202,
117 E8402,
118 E8731
119 # E8121,
120 # E8122,
121 # E8123,
122 # E8124,
123 # E8125,
124 # E8126,
125 # E8127,
126 # E8128
127
128 # Disabled Checks
129 #
130 # W0142 (star-args)
131 # W1202 (logging-format-interpolation) Use % formatting in logging functions but pass the % parameters as arguments
132 # E812* All PEP8 E12*
133 # E8402 module level import not at top of file
134 # E8501 PEP8 line too long
135 # E8731 do not assign a lambda expression, use a def
136 # C0330 (bad-continuation)
137 # I0011 (locally-disabling)
138 # I0012 (locally-enabling)
139 # W1202 (logging-format-interpolation)
140
141
142 [FORMAT]
143
144 # Maximum number of characters on a single line.
145 max-line-length=120
146
147 # Regexp for a line that is allowed to be longer than the limit.
148 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
149
150 # Allow the body of an if to be on the same line as the test if there is no
151 # else.
152 single-line-if-stmt=no
153
154 # List of optional constructs for which whitespace checking is disabled
155 no-space-check=trailing-comma,dict-separator
156
157 # Maximum number of lines in a module
158 max-module-lines=1000
159
160 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
161 # tab).
162 indent-string=' '
163
164 # Number of spaces of indent required inside a hanging or continued line.
165 indent-after-paren=4
166
167 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
168 expected-line-ending-format=LF
169
170
171 [LOGGING]
172
173 # Logging modules to check that the string format arguments are in logging
174 # function parameter format
175 logging-modules=logging
176
177
178 [TYPECHECK]
179
180 # Tells whether missing members accessed in mixin class should be ignored. A
181 # mixin class is detected if its name ends with "mixin" (case insensitive).
182 ignore-mixin-members=yes
183
184 # List of module names for which member attributes should not be checked
185 # (useful for modules/projects where namespaces are manipulated during runtime
186 # and thus existing member attributes cannot be deduced by static analysis
187 ignored-modules=
188
189 # List of classes names for which member attributes should not be checked
190 # (useful for classes with attributes dynamically set).
191 ignored-classes=SQLObject
192
193 # When zope mode is activated, add a predefined set of Zope acquired attributes
194 # to generated-members.
195 zope=no
196
197 # List of members which are set dynamically and missed by pylint inference
198 # system, and so shouldn't trigger E0201 when accessed. Python regular
199 # expressions are accepted.
200 generated-members=REQUEST,acl_users,aq_parent
201
202
203 [MISCELLANEOUS]
204
205 # List of note tags to take in consideration, separated by a comma.
206 notes=FIXME,XXX,TODO
207
208
209 [SIMILARITIES]
210
211 # Minimum lines number of a similarity.
212 min-similarity-lines=4
213
214 # Ignore comments when computing similarities.
215 ignore-comments=yes
216
217 # Ignore docstrings when computing similarities.
218 ignore-docstrings=yes
219
220 # Ignore imports when computing similarities.
221 ignore-imports=no
222
223
224 [VARIABLES]
225
226 # Tells whether we should check for unused import in __init__ files.
227 init-import=no
228
229 # A regular expression matching the name of dummy variables (i.e. expectedly
230 # not used).
231 dummy-variables-rgx=_$|dummy
232
233 # List of additional names supposed to be defined in builtins. Remember that
234 # you should avoid to define new builtins when possible.
235 additional-builtins=__opts__
236
237 # List of strings which can identify a callback function by name. A callback
238 # name must start or end with one of those strings.
239 callbacks=cb_,_cb
240
241
242 [SPELLING]
243
244 # Spelling dictionary name. Available dictionaries: none. To make it working
245 # install python-enchant package.
246 spelling-dict=
247
248 # List of comma separated words that should not be checked.
249 spelling-ignore-words=
250
251 # A path to a file that contains private dictionary; one word per line.
252 spelling-private-dict-file=
253
254 # Tells whether to store unknown words to indicated private dictionary in
255 # --spelling-private-dict-file option instead of raising a message.
256 spelling-store-unknown-words=no
257
258
259 [BASIC]
260
261 # Required attributes for module, separated by a comma
262 # DEPRECATED in PyLint 2.0
263 #required-attributes=
264
265 # List of builtins function names that should not be used, separated by a comma
266 bad-functions=map,filter
267
268 # Good variable names which should always be accepted, separated by a comma
269 good-names=i,j,k,ex,Run,_,log,db
270
271 # Bad variable names which should always be refused, separated by a comma
272 bad-names=foo,bar,baz,toto,tutu,tata
273
274 # Colon-delimited sets of names that determine each other's naming style when
275 # the name regexes allow several styles.
276 name-group=
277
278 # Include a hint for the correct naming format with invalid-name
279 include-naming-hint=no
280
281 # Regular expression matching correct attribute names
282 attr-rgx=[a-z_][a-z0-9_]{2,30}$
283
284 # Naming hint for attribute names
285 attr-name-hint=[a-z_][a-z0-9_]{2,30}$
286
287 # Regular expression matching correct variable names
288 variable-rgx=[a-z_][a-z0-9_]{2,30}$
289
290 # Naming hint for variable names
291 variable-name-hint=[a-z_][a-z0-9_]{2,30}$
292
293 # Regular expression matching correct function names
294 function-rgx=[a-z_][a-z0-9_]{2,30}$
295
296 # Naming hint for function names
297 function-name-hint=[a-z_][a-z0-9_]{2,30}$
298
299 # Regular expression matching correct constant names
300 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
301
302 # Naming hint for constant names
303 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
304
305 # Regular expression matching correct module names
306 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
307
308 # Naming hint for module names
309 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
310
311 # Regular expression matching correct argument names
312 argument-rgx=[a-z_][a-z0-9_]{2,30}$
313
314 # Naming hint for argument names
315 argument-name-hint=[a-z_][a-z0-9_]{2,30}$
316
317 # Regular expression matching correct inline iteration names
318 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
319
320 # Naming hint for inline iteration names
321 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
322
323 # Regular expression matching correct class attribute names
324 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
325
326 # Naming hint for class attribute names
327 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
328
329 # Regular expression matching correct method names
330 method-rgx=[a-z_][a-z0-9_]{2,30}$
331
332 # Naming hint for method names
333 method-name-hint=[a-z_][a-z0-9_]{2,30}$
334
335 # Regular expression matching correct class names
336 class-rgx=[A-Z_][a-zA-Z0-9]+$
337
338 # Naming hint for class names
339 class-name-hint=[A-Z_][a-zA-Z0-9]+$
340
341 # Regular expression which should only match function or class names that do
342 # not require a docstring.
343 no-docstring-rgx=__.*__
344
345 # Minimum line length for functions/classes that require docstrings, shorter
346 # ones are exempt.
347 docstring-min-length=-1
348
349
350 [CLASSES]
351
352 # List of interface methods to ignore, separated by a comma. This is used for
353 # instance to not check methods defines in Zope's Interface base class.
354 # DEPRECATED in PyLint 2.0
355 #ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
356
357 # List of method names used to declare (i.e. assign) instance attributes.
358 defining-attr-methods=__init__,__new__,setUp
359
360 # List of valid names for the first argument in a class method.
361 valid-classmethod-first-arg=cls
362
363 # List of valid names for the first argument in a metaclass class method.
364 valid-metaclass-classmethod-first-arg=mcs
365
366 # List of member names, which should be excluded from the protected access
367 # warning.
368 exclude-protected=_asdict,_fields,_replace,_source,_make
369
370
371 [IMPORTS]
372
373 # Deprecated modules which should not be used, separated by a comma
374 deprecated-modules=stringprep,optparse
375
376 # Create a graph of every (i.e. internal and external) dependencies in the
377 # given file (report RP0402 must not be disabled)
378 import-graph=
379
380 # Create a graph of external dependencies in the given file (report RP0402 must
381 # not be disabled)
382 ext-import-graph=
383
384 # Create a graph of internal dependencies in the given file (report RP0402 must
385 # not be disabled)
386 int-import-graph=
387
388
389 [DESIGN]
390
391 # Maximum number of arguments for function / method
392 max-args=5
393
394 # Argument names that match this expression will be ignored. Default to name
395 # with leading underscore
396 ignored-argument-names=_.*
397
398 # Maximum number of locals for function / method body
399 max-locals=15
400
401 # Maximum number of return / yield for function / method body
402 max-returns=6
403
404 # Maximum number of branch for function / method body
405 max-branches=12
406
407 # Maximum number of statements in function / method body
408 max-statements=50
409
410 # Maximum number of parents for a class (see R0901).
411 max-parents=7
412
413 # Maximum number of attributes for a class (see R0902).
414 max-attributes=7
415
416 # Minimum number of public methods for a class (see R0903).
417 min-public-methods=2
418
419 # Maximum number of public methods for a class (see R0904).
420 max-public-methods=20
421
422
423 [EXCEPTIONS]
424
425 # Exceptions that will emit a warning when being caught. Defaults to
426 # "Exception"
427 overgeneral-exceptions=Exception