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