~suutari-olli/openlp/click-slide-to-go-live-from-blank

2625.43.3 by Tomas Groth
Add pylintrc file
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
# Add files or directories to the blacklist. They should be base names, not
11
# paths.
12
ignore=vlc.py
13
14
# Pickle collected data for later comparisons.
15
persistent=yes
16
17
# List of plugins (as comma separated values of python modules names) to load,
18
# usually to register additional checkers.
19
load-plugins=
20
21
# Use multiple processes to speed up Pylint.
2625.43.6 by Tomas Groth
Fix various issues as suggested by pylint
22
#jobs=4
2625.43.3 by Tomas Groth
Add pylintrc file
23
24
# Allow loading of arbitrary C extensions. Extensions are imported into the
25
# active Python interpreter and may run arbitrary code.
26
unsafe-load-any-extension=no
27
28
# A comma-separated list of package or module names from where C extensions may
29
# be loaded. Extensions are loading into the active Python interpreter and may
30
# run arbitrary code
31
extension-pkg-whitelist=
32
33
# Allow optimization of some AST trees. This will activate a peephole AST
34
# optimizer, which will apply various small optimizations. For instance, it can
35
# be used to obtain the result of joining multiple strings with the addition
36
# operator. Joining a lot of strings can lead to a maximum recursion error in
37
# Pylint and this flag can prevent that. It has one side effect, the resulting
38
# AST will be different than the one from reality.
39
optimize-ast=no
40
41
42
[MESSAGES CONTROL]
43
44
# Only show warnings with the listed confidence levels. Leave empty to show
45
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
46
confidence=
47
48
# Enable the message, report, category or checker with the given id(s). You can
49
# either give multiple identifier separated by comma (,) or put this option
50
# multiple time. See also the "--disable" option for examples.
51
#enable=
52
53
# Disable the message, report, category or checker with the given id(s). You
54
# can either give multiple identifiers separated by comma (,) or put this
55
# option multiple times (only on the command line, not in the configuration
56
# file where it should appear only once).You can also use "--disable=all" to
57
# disable everything first and then reenable specific checks. For example, if
58
# you want to run only the similarities checker, you can use "--disable=all
59
# --enable=similarities". If you want to run only the classes checker, but have
60
# no Warning level messages displayed, use"--disable=all --enable=classes
61
# --disable=W"
62
disable=reload-builtin,too-many-locals,no-name-in-module,hex-method,bad-builtin,old-raise-syntax,bad-continuation,reduce-builtin,unicode-builtin,unused-wildcard-import,apply-builtin,no-member,filter-builtin-not-iterating,execfile-builtin,import-star-module-level,input-builtin,duplicate-code,old-division,print-statement,cmp-method,fixme,no-absolute-import,cmp-builtin,no-self-use,too-many-nested-blocks,standarderror-builtin,long-builtin,raising-string,delslice-method,metaclass-assignment,coerce-builtin,old-octal-literal,basestring-builtin,xrange-builtin,line-too-long,suppressed-message,unused-variable,round-builtin,raw_input-builtin,too-many-instance-attributes,unused-argument,next-method-called,oct-method,attribute-defined-outside-init,too-many-public-methods,too-many-statements,logging-format-interpolation,map-builtin-not-iterating,buffer-builtin,parameter-unpacking,range-builtin-not-iterating,intern-builtin,wrong-import-position,coerce-method,useless-suppression,using-cmp-argument,dict-view-method,backtick,old-ne-operator,missing-docstring,setslice-method,access-member-before-definition,long-suffix,too-few-public-methods,file-builtin,zip-builtin-not-iterating,invalid-name,getslice-method,unpacking-in-except,too-many-arguments,dict-iter-method,unichr-builtin,too-many-lines,too-many-branches,wildcard-import,indexing-exception,nonzero-method
63
64
65
[REPORTS]
66
67
# Set the output format. Available formats are text, parseable, colorized, msvs
68
# (visual studio) and html. You can also give a reporter class, eg
69
# mypackage.mymodule.MyReporterClass.
70
output-format=text
71
72
# Put messages in a separate file for each module / package specified on the
73
# command line instead of printing them on stdout. Reports (if any) will be
74
# written in a file name "pylint_global.[txt|html]".
75
files-output=no
76
77
# Tells whether to display a full report or only the messages
78
reports=no
79
80
# Python expression which should return a note less than 10 (10 is the highest
81
# note). You have access to the variables errors warning, statement which
82
# respectively contain the number of errors / warnings messages and the total
83
# number of statements analyzed. This is used by the global evaluation report
84
# (RP0004).
85
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
86
87
# Template used to display messages. This is a python new-style format string
88
# used to format the message information. See doc for all details
89
#msg-template=
90
91
92
[SPELLING]
93
94
# Spelling dictionary name. Available dictionaries: en_ZA (myspell), en_US
95
# (myspell), en_GB (myspell), en_AU (myspell), da_DK (myspell), en (aspell),
96
# en_CA (aspell).
97
spelling-dict=
98
99
# List of comma separated words that should not be checked.
100
spelling-ignore-words=
101
102
# A path to a file that contains private dictionary; one word per line.
103
spelling-private-dict-file=
104
105
# Tells whether to store unknown words to indicated private dictionary in
106
# --spelling-private-dict-file option instead of raising a message.
107
spelling-store-unknown-words=no
108
109
110
[SIMILARITIES]
111
112
# Minimum lines number of a similarity.
113
min-similarity-lines=4
114
115
# Ignore comments when computing similarities.
116
ignore-comments=yes
117
118
# Ignore docstrings when computing similarities.
119
ignore-docstrings=yes
120
121
# Ignore imports when computing similarities.
122
ignore-imports=no
123
124
125
[LOGGING]
126
127
# Logging modules to check that the string format arguments are in logging
128
# function parameter format
129
logging-modules=logging
130
131
132
[BASIC]
133
134
# List of builtins function names that should not be used, separated by a comma
135
bad-functions=map,filter
136
137
# Good variable names which should always be accepted, separated by a comma
138
good-names=i,j,k,ex,Run,_
139
140
# Bad variable names which should always be refused, separated by a comma
141
bad-names=foo,bar,baz,toto,tutu,tata
142
143
# Colon-delimited sets of names that determine each other's naming style when
144
# the name regexes allow several styles.
145
name-group=
146
147
# Include a hint for the correct naming format with invalid-name
148
include-naming-hint=no
149
150
# Regular expression matching correct class attribute names
151
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
152
153
# Naming hint for class attribute names
154
class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
155
156
# Regular expression matching correct attribute names
157
attr-rgx=[a-z_][a-z0-9_]{2,30}$
158
159
# Naming hint for attribute names
160
attr-name-hint=[a-z_][a-z0-9_]{2,30}$
161
162
# Regular expression matching correct variable names
163
variable-rgx=[a-z_][a-z0-9_]{2,30}$
164
165
# Naming hint for variable names
166
variable-name-hint=[a-z_][a-z0-9_]{2,30}$
167
168
# Regular expression matching correct argument names
169
argument-rgx=[a-z_][a-z0-9_]{2,30}$
170
171
# Naming hint for argument names
172
argument-name-hint=[a-z_][a-z0-9_]{2,30}$
173
174
# Regular expression matching correct function names
175
function-rgx=[a-z_][a-z0-9_]{2,30}$
176
177
# Naming hint for function names
178
function-name-hint=[a-z_][a-z0-9_]{2,30}$
179
180
# Regular expression matching correct method names
181
method-rgx=[a-z_][a-z0-9_]{2,30}$
182
183
# Naming hint for method names
184
method-name-hint=[a-z_][a-z0-9_]{2,30}$
185
186
# Regular expression matching correct class names
187
class-rgx=[A-Z_][a-zA-Z0-9]+$
188
189
# Naming hint for class names
190
class-name-hint=[A-Z_][a-zA-Z0-9]+$
191
192
# Regular expression matching correct module names
193
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
194
195
# Naming hint for module names
196
module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
197
198
# Regular expression matching correct inline iteration names
199
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
200
201
# Naming hint for inline iteration names
202
inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
203
204
# Regular expression matching correct constant names
205
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
206
207
# Naming hint for constant names
208
const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
209
210
# Regular expression which should only match function or class names that do
211
# not require a docstring.
212
no-docstring-rgx=^_
213
214
# Minimum line length for functions/classes that require docstrings, shorter
215
# ones are exempt.
216
docstring-min-length=-1
217
218
219
[ELIF]
220
221
# Maximum number of nested blocks for function / method body
222
max-nested-blocks=5
223
224
225
[FORMAT]
226
227
# Maximum number of characters on a single line.
228
max-line-length=100
229
230
# Regexp for a line that is allowed to be longer than the limit.
231
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
232
233
# Allow the body of an if to be on the same line as the test if there is no
234
# else.
235
single-line-if-stmt=no
236
237
# List of optional constructs for which whitespace checking is disabled. `dict-
238
# separator` is used to allow tabulation in dicts, etc.: {1  : 1,\n222: 2}.
239
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
240
# `empty-line` allows space-only lines.
241
no-space-check=trailing-comma,dict-separator
242
243
# Maximum number of lines in a module
244
max-module-lines=1000
245
246
# String used as indentation unit. This is usually "    " (4 spaces) or "\t" (1
247
# tab).
248
indent-string='    '
249
250
# Number of spaces of indent required inside a hanging  or continued line.
251
indent-after-paren=4
252
253
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
254
expected-line-ending-format=
255
256
257
[MISCELLANEOUS]
258
259
# List of note tags to take in consideration, separated by a comma.
260
notes=FIXME,XXX,TODO
261
262
263
[VARIABLES]
264
265
# Tells whether we should check for unused import in __init__ files.
266
init-import=no
267
268
# A regular expression matching the name of dummy variables (i.e. expectedly
269
# not used).
270
dummy-variables-rgx=_$|dummy
271
272
# List of additional names supposed to be defined in builtins. Remember that
273
# you should avoid to define new builtins when possible.
274
additional-builtins=
275
276
# List of strings which can identify a callback function by name. A callback
277
# name must start or end with one of those strings.
278
callbacks=cb_,_cb
279
280
281
[TYPECHECK]
282
283
# Tells whether missing members accessed in mixin class should be ignored. A
284
# mixin class is detected if its name ends with "mixin" (case insensitive).
285
ignore-mixin-members=yes
286
287
# List of module names for which member attributes should not be checked
288
# (useful for modules/projects where namespaces are manipulated during runtime
289
# and thus existing member attributes cannot be deduced by static analysis. It
290
# supports qualified module names, as well as Unix pattern matching.
291
ignored-modules=
292
293
# List of classes names for which member attributes should not be checked
294
# (useful for classes with attributes dynamically set). This supports can work
295
# with qualified names.
296
ignored-classes=
297
298
# List of members which are set dynamically and missed by pylint inference
299
# system, and so shouldn't trigger E1101 when accessed. Python regular
300
# expressions are accepted.
301
generated-members=
302
303
304
[DESIGN]
305
306
# Maximum number of arguments for function / method
307
max-args=5
308
309
# Argument names that match this expression will be ignored. Default to name
310
# with leading underscore
311
ignored-argument-names=_.*
312
313
# Maximum number of locals for function / method body
314
max-locals=15
315
316
# Maximum number of return / yield for function / method body
317
max-returns=6
318
319
# Maximum number of branch for function / method body
320
max-branches=12
321
322
# Maximum number of statements in function / method body
323
max-statements=50
324
325
# Maximum number of parents for a class (see R0901).
326
max-parents=7
327
328
# Maximum number of attributes for a class (see R0902).
329
max-attributes=7
330
331
# Minimum number of public methods for a class (see R0903).
332
min-public-methods=2
333
334
# Maximum number of public methods for a class (see R0904).
335
max-public-methods=20
336
337
# Maximum number of boolean expressions in a if statement
338
max-bool-expr=5
339
340
341
[IMPORTS]
342
343
# Deprecated modules which should not be used, separated by a comma
344
deprecated-modules=optparse
345
346
# Create a graph of every (i.e. internal and external) dependencies in the
347
# given file (report RP0402 must not be disabled)
348
import-graph=
349
350
# Create a graph of external dependencies in the given file (report RP0402 must
351
# not be disabled)
352
ext-import-graph=
353
354
# Create a graph of internal dependencies in the given file (report RP0402 must
355
# not be disabled)
356
int-import-graph=
357
358
359
[CLASSES]
360
361
# List of method names used to declare (i.e. assign) instance attributes.
362
defining-attr-methods=__init__,__new__,setUp
363
364
# List of valid names for the first argument in a class method.
365
valid-classmethod-first-arg=cls
366
367
# List of valid names for the first argument in a metaclass class method.
368
valid-metaclass-classmethod-first-arg=mcs
369
370
# List of member names, which should be excluded from the protected access
371
# warning.
372
exclude-protected=_asdict,_fields,_replace,_source,_make
373
374
375
[EXCEPTIONS]
376
377
# Exceptions that will emit a warning when being caught. Defaults to
378
# "Exception"
379
overgeneral-exceptions=Exception