2 # Pickle collected data for later comparisons.
5 # List of plugins (as comma separated values of python modules names) to load,
6 # usually to register additional checkers.
9 # Use multiple processes to speed up Pylint.
12 # Allow loading of arbitrary C extensions. Extensions are imported into the
13 # active Python interpreter and may run arbitrary code.
14 unsafe-load-any-extension=no
16 # A comma-separated list of package or module names from where C extensions may
17 # be loaded. Extensions are loading into the active Python interpreter and may
19 extension-pkg-whitelist=
21 # Allow optimization of some AST trees. This will activate a peephole AST
22 # optimizer, which will apply various small optimizations. For instance, it can
23 # be used to obtain the result of joining multiple strings with the addition
24 # operator. Joining a lot of strings can lead to a maximum recursion error in
25 # Pylint and this flag can prevent that. It has one side effect, the resulting
26 # AST will be different than the one from reality.
32 # Only show warnings with the listed confidence levels. Leave empty to show
33 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
36 # Enable the message, report, category or checker with the given id(s). You can
37 # either give multiple identifier separated by comma (,) or put this option
38 # multiple time. See also the "--disable" option for examples.
41 # Disable the message, report, category or checker with the given id(s). You
42 # can either give multiple identifiers separated by comma (,) or put this
43 # option multiple times (only on the command line, not in the configuration
44 # file where it should appear only once).You can also use "--disable=all" to
45 # disable everything first and then reenable specific checks. For example, if
46 # you want to run only the similarities checker, you can use "--disable=all
47 # --enable=similarities". If you want to run only the classes checker, but have
48 # no Warning level messages displayed, use"--disable=all --enable=classes
52 disable=E1608,W1627,E1601,E1603,E1602,E1605,E1604,E1607,E1606,W1621,W1620,W1623,
53 W1622,W1625,W1624,W1609,W1608,W1607,W1606,W1605,W1604,W1603,W1602,W1601,
54 W1639,W1640,I0021,W1638,I0020,W1618,W1619,W1630,W1626,W1637,W1634,W1635,W1610,
55 W1611,W1612,W1613,W1614,W1615,W1616,W1617,W1632,W1633,W0704,W1628,W1629,W1636,
58 # Too few public methods - we want our classes neat, damnit!
60 # Attribute defined outside __init__
65 # Set the output format. Available formats are text, parseable, colorized, msvs
66 # (visual studio) and html. You can also give a reporter class, eg
67 # mypackage.mymodule.MyReporterClass.
68 output-format=colorized
70 # Put messages in a separate file for each module / package specified on the
71 # command line instead of printing them on stdout. Reports (if any) will be
72 # written in a file name "pylint_global.[txt|html]".
75 # Tells whether to display a full report or only the messages
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
83 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
85 # Add a comment according to your evaluation note. This is used by the global
86 # evaluation report (RP0004).
89 # Template used to display messages. This is a python new-style format string
90 # used to format the message information. See doc for all details
96 # List of note tags to take in consideration, separated by a comma.
102 # Tells whether we should check for unused import in __init__ files.
105 # A regular expression matching the name of dummy variables (i.e. expectedly
107 dummy-variables-rgx=_$|dummy
109 # List of additional names supposed to be defined in builtins. Remember that
110 # you should avoid to define new builtins when possible.
113 # List of strings which can identify a callback function by name. A callback
114 # name must start or end with one of those strings.
120 # Required attributes for module, separated by a comma
123 # List of builtins function names that should not be used, separated by a comma
124 bad-functions=map,filter,input
126 # Good variable names which should always be accepted, separated by a comma
127 good-names=i,j,k,ex,Run,_
129 # Bad variable names which should always be refused, separated by a comma
130 bad-names=foo,bar,baz,toto,tutu,tata
132 # Colon-delimited sets of names that determine each other's naming style when
133 # the name regexes allow several styles.
136 # Include a hint for the correct naming format with invalid-name
137 include-naming-hint=no
139 # Regular expression matching correct function names
140 function-rgx=[a-z_][a-z0-9_]{2,30}$
142 # Naming hint for function names
143 function-name-hint=[a-z_][a-z0-9_]{2,30}$
145 # Regular expression matching correct variable names
146 variable-rgx=[a-z_][a-z0-9_]{2,30}$
148 # Naming hint for variable names
149 variable-name-hint=[a-z_][a-z0-9_]{2,30}$
151 # Regular expression matching correct constant names
152 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
154 # Naming hint for constant names
155 const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
157 # Regular expression matching correct attribute names
158 attr-rgx=[a-z_][a-z0-9_]{2,30}$
160 # Naming hint for attribute names
161 attr-name-hint=[a-z_][a-z0-9_]{2,30}$
163 # Regular expression matching correct argument names
164 argument-rgx=[a-z_][a-z0-9_]{2,30}$
166 # Naming hint for argument names
167 argument-name-hint=[a-z_][a-z0-9_]{2,30}$
169 # Regular expression matching correct class attribute names
170 class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
172 # Naming hint for class attribute names
173 class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
175 # Regular expression matching correct inline iteration names
176 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
178 # Naming hint for inline iteration names
179 inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
181 # Regular expression matching correct class names
182 class-rgx=[A-Z_][a-zA-Z0-9]+$
184 # Naming hint for class names
185 class-name-hint=[A-Z_][a-zA-Z0-9]+$
187 # Regular expression matching correct module names
188 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
190 # Naming hint for module names
191 module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
193 # Regular expression matching correct method names
194 method-rgx=[a-z_][a-z0-9_]{2,30}$
196 # Naming hint for method names
197 method-name-hint=[a-z_][a-z0-9_]{2,30}$
199 # Regular expression which should only match function or class names that do
200 # not require a docstring.
201 no-docstring-rgx=__.*__
203 # Minimum line length for functions/classes that require docstrings, shorter
205 docstring-min-length=-1
210 # Minimum lines number of a similarity.
211 min-similarity-lines=4
213 # Ignore comments when computing similarities.
216 # Ignore docstrings when computing similarities.
217 ignore-docstrings=yes
219 # Ignore imports when computing similarities.
225 # Logging modules to check that the string format arguments are in logging
226 # function parameter format
227 logging-modules=logging
232 # Tells whether missing members accessed in mixin class should be ignored. A
233 # mixin class is detected if its name ends with "mixin" (case insensitive).
234 ignore-mixin-members=yes
236 # List of module names for which member attributes should not be checked
237 # (useful for modules/projects where namespaces are manipulated during runtime
238 # and thus existing member attributes cannot be deduced by static analysis
241 # List of classes names for which member attributes should not be checked
242 # (useful for classes with attributes dynamically set).
243 ignored-classes=SQLObject
245 # When zope mode is activated, add a predefined set of Zope acquired attributes
246 # to generated-members.
249 # List of members which are set dynamically and missed by pylint inference
250 # system, and so shouldn't trigger E0201 when accessed. Python regular
251 # expressions are accepted.
252 generated-members=REQUEST,acl_users,aq_parent
257 # Maximum number of characters on a single line.
260 # Regexp for a line that is allowed to be longer than the limit.
261 ignore-long-lines=^\s*(# )?<?https?://\S+>?$
263 # Allow the body of an if to be on the same line as the test if there is no
265 single-line-if-stmt=no
267 # List of optional constructs for which whitespace checking is disabled
268 no-space-check=trailing-comma,dict-separator
270 # Maximum number of lines in a module
271 max-module-lines=1000
273 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
277 # Number of spaces of indent required inside a hanging or continued line.
280 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
281 expected-line-ending-format=
286 # Deprecated modules which should not be used, separated by a comma
287 deprecated-modules=regsub,TERMIOS,Bastion,rexec
289 # Create a graph of every (i.e. internal and external) dependencies in the
290 # given file (report RP0402 must not be disabled)
293 # Create a graph of external dependencies in the given file (report RP0402 must
297 # Create a graph of internal dependencies in the given file (report RP0402 must
304 # List of interface methods to ignore, separated by a comma. This is used for
305 # instance to not check methods defines in Zope's Interface base class.
306 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
308 # List of method names used to declare (i.e. assign) instance attributes.
309 defining-attr-methods=__init__,__new__,setUp
311 # List of valid names for the first argument in a class method.
312 valid-classmethod-first-arg=cls
314 # List of valid names for the first argument in a metaclass class method.
315 valid-metaclass-classmethod-first-arg=mcs
317 # List of member names, which should be excluded from the protected access
319 exclude-protected=_asdict,_fields,_replace,_source,_make
324 # Maximum number of arguments for function / method
327 # Argument names that match this expression will be ignored. Default to name
328 # with leading underscore
329 ignored-argument-names=_.*
331 # Maximum number of locals for function / method body
334 # Maximum number of return / yield for function / method body
337 # Maximum number of branch for function / method body
340 # Maximum number of statements in function / method body
343 # Maximum number of parents for a class (see R0901).
346 # Maximum number of attributes for a class (see R0902).
349 # Minimum number of public methods for a class (see R0903).
352 # Maximum number of public methods for a class (see R0904).
353 max-public-methods=20
358 # Exceptions that will emit a warning when being caught. Defaults to
360 overgeneral-exceptions=Exception