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