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