Horizon Web interface for Freezer backup, restore and disaster recovery platform
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.pylintrc 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. [MASTER]
  2. # Specify a configuration file.
  3. #rcfile=
  4. # Python code to execute, usually for sys.path manipulation such as
  5. # pygtk.require().
  6. #init-hook=
  7. # Profiled execution.
  8. profile=no
  9. # Add files or directories to the blacklist. They should be base names, not
  10. # paths.
  11. ignore=CVS
  12. # Pickle collected data for later comparisons.
  13. persistent=no
  14. # List of plugins (as comma separated values of python modules names) to load,
  15. # usually to register additional checkers.
  16. load-plugins=
  17. # DEPRECATED
  18. include-ids=no
  19. # DEPRECATED
  20. symbols=no
  21. [MESSAGES CONTROL]
  22. # Enable the message, report, category or checker with the given id(s). You can
  23. # either give multiple identifier separated by comma (,) or put this option
  24. # multiple time. See also the "--disable" option for examples.
  25. #enable=
  26. # Disable the message, report, category or checker with the given id(s). You
  27. # can either give multiple identifiers separated by comma (,) or put this
  28. # option multiple times (only on the command line, not in the configuration
  29. # file where it should appear only once).You can also use "--disable=all" to
  30. # disable everything first and then reenable specific checks. For example, if
  31. # you want to run only the similarities checker, you can use "--disable=all
  32. # --enable=similarities". If you want to run only the classes checker, but have
  33. # no Warning level messages displayed, use"--disable=all --enable=classes
  34. # --disable=W"
  35. disable=E1002,W,C,R,method-hidden,import-error,no-member
  36. [REPORTS]
  37. # Set the output format. Available formats are text, parseable, colorized, msvs
  38. # (visual studio) and html. You can also give a reporter class, eg
  39. # mypackage.mymodule.MyReporterClass.
  40. output-format=text
  41. # Put messages in a separate file for each module / package specified on the
  42. # command line instead of printing them on stdout. Reports (if any) will be
  43. # written in a file name "pylint_global.[txt|html]".
  44. files-output=no
  45. # Tells whether to display a full report or only the messages
  46. reports=no
  47. # Python expression which should return a note less than 10 (10 is the highest
  48. # note). You have access to the variables errors warning, statement which
  49. # respectively contain the number of errors / warnings messages and the total
  50. # number of statements analyzed. This is used by the global evaluation report
  51. # (RP0004).
  52. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  53. # Add a comment according to your evaluation note. This is used by the global
  54. # evaluation report (RP0004).
  55. comment=no
  56. # Template used to display messages. This is a python new-style format string
  57. # used to format the message information. See doc for all details
  58. #msg-template=
  59. [SIMILARITIES]
  60. # Minimum lines number of a similarity.
  61. min-similarity-lines=4
  62. # Ignore comments when computing similarities.
  63. ignore-comments=yes
  64. # Ignore docstrings when computing similarities.
  65. ignore-docstrings=yes
  66. # Ignore imports when computing similarities.
  67. ignore-imports=no
  68. [TYPECHECK]
  69. # Tells whether missing members accessed in mixin class should be ignored. A
  70. # mixin class is detected if its name ends with "mixin" (case insensitive).
  71. ignore-mixin-members=yes
  72. # List of module names for which member attributes should not be checked
  73. # (useful for modules/projects where namespaces are manipulated during runtime
  74. # and thus extisting member attributes cannot be deduced by static analysis
  75. ignored-modules=distutils
  76. # List of classes names for which member attributes should not be checked
  77. # (useful for classes with attributes dynamically set).
  78. ignored-classes=SQLObject
  79. # When zope mode is activated, add a predefined set of Zope acquired attributes
  80. # to generated-members.
  81. zope=no
  82. # List of members which are set dynamically and missed by pylint inference
  83. # system, and so shouldn't trigger E0201 when accessed. Python regular
  84. # expressions are accepted.
  85. generated-members=REQUEST,acl_users,aq_parent,BackupJob.time_stamp,BackupJob.start_time
  86. [MISCELLANEOUS]
  87. # List of note tags to take in consideration, separated by a comma.
  88. notes=FIXME,XXX,TODO
  89. [BASIC]
  90. # Required attributes for module, separated by a comma
  91. required-attributes=
  92. # List of builtins function names that should not be used, separated by a comma
  93. bad-functions=map,filter,apply,input,file
  94. # Good variable names which should always be accepted, separated by a comma
  95. good-names=i,j,k,ex,Run,_
  96. # Bad variable names which should always be refused, separated by a comma
  97. bad-names=foo,bar,baz,toto,tutu,tata
  98. # Colon-delimited sets of names that determine each other's naming style when
  99. # the name regexes allow several styles.
  100. name-group=
  101. # Include a hint for the correct naming format with invalid-name
  102. include-naming-hint=no
  103. # Regular expression matching correct function names
  104. function-rgx=[a-z_][a-z0-9_]{2,30}$
  105. # Naming hint for function names
  106. function-name-hint=[a-z_][a-z0-9_]{2,30}$
  107. # Regular expression matching correct variable names
  108. variable-rgx=[a-z_][a-z0-9_]{2,30}$
  109. # Naming hint for variable names
  110. variable-name-hint=[a-z_][a-z0-9_]{2,30}$
  111. # Regular expression matching correct constant names
  112. const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  113. # Naming hint for constant names
  114. const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  115. # Regular expression matching correct attribute names
  116. attr-rgx=[a-z_][a-z0-9_]{2,30}$
  117. # Naming hint for attribute names
  118. attr-name-hint=[a-z_][a-z0-9_]{2,30}$
  119. # Regular expression matching correct argument names
  120. argument-rgx=[a-z_][a-z0-9_]{2,30}$
  121. # Naming hint for argument names
  122. argument-name-hint=[a-z_][a-z0-9_]{2,30}$
  123. # Regular expression matching correct class attribute names
  124. class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  125. # Naming hint for class attribute names
  126. class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  127. # Regular expression matching correct inline iteration names
  128. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  129. # Naming hint for inline iteration names
  130. inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
  131. # Regular expression matching correct class names
  132. class-rgx=[A-Z_][a-zA-Z0-9]+$
  133. # Naming hint for class names
  134. class-name-hint=[A-Z_][a-zA-Z0-9]+$
  135. # Regular expression matching correct module names
  136. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  137. # Naming hint for module names
  138. module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  139. # Regular expression matching correct method names
  140. method-rgx=[a-z_][a-z0-9_]{2,30}$
  141. # Naming hint for method names
  142. method-name-hint=[a-z_][a-z0-9_]{2,30}$
  143. # Regular expression which should only match function or class names that do
  144. # not require a docstring.
  145. no-docstring-rgx=__.*__
  146. # Minimum line length for functions/classes that require docstrings, shorter
  147. # ones are exempt.
  148. docstring-min-length=-1
  149. [VARIABLES]
  150. # Tells whether we should check for unused import in __init__ files.
  151. init-import=no
  152. # A regular expression matching the name of dummy variables (i.e. expectedly
  153. # not used).
  154. dummy-variables-rgx=_$|dummy
  155. # List of additional names supposed to be defined in builtins. Remember that
  156. # you should avoid to define new builtins when possible.
  157. additional-builtins=
  158. [LOGGING]
  159. # Logging modules to check that the string format arguments are in logging
  160. # function parameter format
  161. logging-modules=logging
  162. [FORMAT]
  163. # Maximum number of characters on a single line.
  164. max-line-length=80
  165. # Regexp for a line that is allowed to be longer than the limit.
  166. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  167. # Allow the body of an if to be on the same line as the test if there is no
  168. # else.
  169. single-line-if-stmt=no
  170. # List of optional constructs for which whitespace checking is disabled
  171. no-space-check=trailing-comma,dict-separator
  172. # Maximum number of lines in a module
  173. max-module-lines=1000
  174. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  175. # tab).
  176. indent-string=' '
  177. [DESIGN]
  178. # Maximum number of arguments for function / method
  179. max-args=5
  180. # Argument names that match this expression will be ignored. Default to name
  181. # with leading underscore
  182. ignored-argument-names=_.*
  183. # Maximum number of locals for function / method body
  184. max-locals=15
  185. # Maximum number of return / yield for function / method body
  186. max-returns=6
  187. # Maximum number of branch for function / method body
  188. max-branches=12
  189. # Maximum number of statements in function / method body
  190. max-statements=50
  191. # Maximum number of parents for a class (see R0901).
  192. max-parents=7
  193. # Maximum number of attributes for a class (see R0902).
  194. max-attributes=7
  195. # Minimum number of public methods for a class (see R0903).
  196. min-public-methods=2
  197. # Maximum number of public methods for a class (see R0904).
  198. max-public-methods=20
  199. [CLASSES]
  200. # List of interface methods to ignore, separated by a comma. This is used for
  201. # instance to not check methods defines in Zope's Interface base class.
  202. ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
  203. # List of method names used to declare (i.e. assign) instance attributes.
  204. defining-attr-methods=__init__,__new__,setUp
  205. # List of valid names for the first argument in a class method.
  206. valid-classmethod-first-arg=cls
  207. # List of valid names for the first argument in a metaclass class method.
  208. valid-metaclass-classmethod-first-arg=mcs
  209. [IMPORTS]
  210. # Deprecated modules which should not be used, separated by a comma
  211. deprecated-modules=regsub,TERMIOS,Bastion,rexec
  212. # Create a graph of every (i.e. internal and external) dependencies in the
  213. # given file (report RP0402 must not be disabled)
  214. import-graph=
  215. # Create a graph of external dependencies in the given file (report RP0402 must
  216. # not be disabled)
  217. ext-import-graph=
  218. # Create a graph of internal dependencies in the given file (report RP0402 must
  219. # not be disabled)
  220. int-import-graph=
  221. [EXCEPTIONS]
  222. # Exceptions that will emit a warning when being caught. Defaults to
  223. # "Exception"
  224. overgeneral-exceptions=Exception