Increment version to 0.2.0.
[pyCraft.git] / pylintrc
blob99a1c2d49925e47b16943c0848b6fb0f74525de2
1 [MASTER]
2 # Pickle collected data for later comparisons.
3 persistent=yes
5 # List of plugins (as comma separated values of python modules names) to load,
6 # usually to register additional checkers.
7 load-plugins=
9 # Use multiple processes to speed up Pylint.
10 jobs=1
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
18 # run arbitrary code
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.
27 optimize-ast=no
30 [MESSAGES CONTROL]
32 # Only show warnings with the listed confidence levels. Leave empty to show
33 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
34 confidence=
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.
39 #enable=
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
49 # --disable=W"
51 # Default
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,
56 # Informational
57     I0011, I0012,
58 # Too few public methods - we want our classes neat, damnit!
59     R0903,
60 # Attribute defined outside __init__
61     W0201
63 [REPORTS]
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]".
73 files-output=no
75 # Tells whether to display a full report or only the messages
76 reports=yes
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
82 # (RP0004).
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).
87 comment=no
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
91 #msg-template=
94 [MISCELLANEOUS]
96 # List of note tags to take in consideration, separated by a comma.
97 notes=FIXME,XXX,TODO
100 [VARIABLES]
102 # Tells whether we should check for unused import in __init__ files.
103 init-import=no
105 # A regular expression matching the name of dummy variables (i.e. expectedly
106 # not used).
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.
111 additional-builtins=
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.
115 callbacks=cb_,_cb
118 [BASIC]
120 # Required attributes for module, separated by a comma
121 required-attributes=
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.
134 name-group=
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
204 # ones are exempt.
205 docstring-min-length=-1
208 [SIMILARITIES]
210 # Minimum lines number of a similarity.
211 min-similarity-lines=4
213 # Ignore comments when computing similarities.
214 ignore-comments=yes
216 # Ignore docstrings when computing similarities.
217 ignore-docstrings=yes
219 # Ignore imports when computing similarities.
220 ignore-imports=no
223 [LOGGING]
225 # Logging modules to check that the string format arguments are in logging
226 # function parameter format
227 logging-modules=logging
230 [TYPECHECK]
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
239 ignored-modules=
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.
247 zope=no
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
255 [FORMAT]
257 # Maximum number of characters on a single line.
258 max-line-length=100
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
264 # else.
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
274 # tab).
275 indent-string='    '
277 # Number of spaces of indent required inside a hanging or continued line.
278 indent-after-paren=4
280 # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
281 expected-line-ending-format=
284 [IMPORTS]
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)
291 import-graph=
293 # Create a graph of external dependencies in the given file (report RP0402 must
294 # not be disabled)
295 ext-import-graph=
297 # Create a graph of internal dependencies in the given file (report RP0402 must
298 # not be disabled)
299 int-import-graph=
302 [CLASSES]
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
318 # warning.
319 exclude-protected=_asdict,_fields,_replace,_source,_make
322 [DESIGN]
324 # Maximum number of arguments for function / method
325 max-args=5
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
332 max-locals=15
334 # Maximum number of return / yield for function / method body
335 max-returns=6
337 # Maximum number of branch for function / method body
338 max-branches=12
340 # Maximum number of statements in function / method body
341 max-statements=50
343 # Maximum number of parents for a class (see R0901).
344 max-parents=7
346 # Maximum number of attributes for a class (see R0902).
347 max-attributes=7
349 # Minimum number of public methods for a class (see R0903).
350 min-public-methods=2
352 # Maximum number of public methods for a class (see R0904).
353 max-public-methods=20
356 [EXCEPTIONS]
358 # Exceptions that will emit a warning when being caught. Defaults to
359 # "Exception"
360 overgeneral-exceptions=Exception