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.
 
 
 

251 lines
7.2 KiB

  1. # -*- conf -*-
  2. [MASTER]
  3. # Specify a configuration file.
  4. #rcfile=
  5. # Python code to execute, usually for sys.path manipulation such as
  6. # pygtk.require().
  7. #init-hook=
  8. # Profiled execution.
  9. profile=no
  10. # Add files or directories to the blacklist. They should be base names, not
  11. # paths.
  12. ignore=datetime_tz
  13. # Pickle collected data for later comparisons.
  14. persistent=no
  15. # List of plugins (as comma separated values of python modules names) to load,
  16. # usually to register additional checkers.
  17. load-plugins=
  18. [MESSAGES CONTROL]
  19. # Enable the message, report, category or checker with the given id(s). You can
  20. # either give multiple identifier separated by comma (,) or put this option
  21. # multiple time.
  22. #enable=
  23. # Disable the message, report, category or checker with the given id(s). You
  24. # can either give multiple identifier separated by comma (,) or put this option
  25. # multiple time (only on the command line, not in the configuration file where
  26. # it should appear only once).
  27. disable=C0111,R0903,R0201,R0914,R0912,W0142,W0703,W0702
  28. [REPORTS]
  29. # Set the output format. Available formats are text, parseable, colorized, msvs
  30. # (visual studio) and html
  31. output-format=parseable
  32. # Include message's id in output
  33. include-ids=yes
  34. # Put messages in a separate file for each module / package specified on the
  35. # command line instead of printing them on stdout. Reports (if any) will be
  36. # written in a file name "pylint_global.[txt|html]".
  37. files-output=no
  38. # Tells whether to display a full report or only the messages
  39. reports=yes
  40. # Python expression which should return a note less than 10 (10 is the highest
  41. # note). You have access to the variables errors warning, statement which
  42. # respectively contain the number of errors / warnings messages and the total
  43. # number of statements analyzed. This is used by the global evaluation report
  44. # (RP0004).
  45. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  46. # Add a comment according to your evaluation note. This is used by the global
  47. # evaluation report (RP0004).
  48. comment=no
  49. [SIMILARITIES]
  50. # Minimum lines number of a similarity.
  51. min-similarity-lines=4
  52. # Ignore comments when computing similarities.
  53. ignore-comments=yes
  54. # Ignore docstrings when computing similarities.
  55. ignore-docstrings=yes
  56. [TYPECHECK]
  57. # Tells whether missing members accessed in mixin class should be ignored. A
  58. # mixin class is detected if its name ends with "mixin" (case insensitive).
  59. ignore-mixin-members=yes
  60. # List of classes names for which member attributes should not be checked
  61. # (useful for classes with attributes dynamically set).
  62. ignored-classes=SQLObject
  63. # When zope mode is activated, add a predefined set of Zope acquired attributes
  64. # to generated-members.
  65. zope=no
  66. # List of members which are set dynamically and missed by pylint inference
  67. # system, and so shouldn't trigger E0201 when accessed. Python regular
  68. # expressions are accepted.
  69. generated-members=REQUEST,acl_users,aq_parent
  70. [FORMAT]
  71. # Maximum number of characters on a single line.
  72. max-line-length=80
  73. # Maximum number of lines in a module
  74. max-module-lines=1000
  75. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  76. # tab).
  77. indent-string=' '
  78. [MISCELLANEOUS]
  79. # List of note tags to take in consideration, separated by a comma.
  80. notes=FIXME,XXX,TODO
  81. [VARIABLES]
  82. # Tells whether we should check for unused import in __init__ files.
  83. init-import=no
  84. # A regular expression matching the beginning of the name of dummy variables
  85. # (i.e. not used).
  86. dummy-variables-rgx=_|dummy
  87. # List of additional names supposed to be defined in builtins. Remember that
  88. # you should avoid to define new builtins when possible.
  89. additional-builtins=
  90. [BASIC]
  91. # Required attributes for module, separated by a comma
  92. required-attributes=
  93. # List of builtins function names that should not be used, separated by a comma
  94. bad-functions=apply,input
  95. # Regular expression which should only match correct module names
  96. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  97. # Regular expression which should only match correct module level names
  98. const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__)|version)$
  99. # Regular expression which should only match correct class names
  100. class-rgx=[A-Z_][a-zA-Z0-9]+$
  101. # Regular expression which should only match correct function names
  102. function-rgx=[a-z_][a-z0-9_]{0,30}$
  103. # Regular expression which should only match correct method names
  104. method-rgx=[a-z_][a-z0-9_]{0,30}$
  105. # Regular expression which should only match correct instance attribute names
  106. attr-rgx=[a-z_][a-z0-9_]{0,30}$
  107. # Regular expression which should only match correct argument names
  108. argument-rgx=[a-z_][a-z0-9_]{0,30}$
  109. # Regular expression which should only match correct variable names
  110. variable-rgx=[a-z_][a-z0-9_]{0,30}$
  111. # Regular expression which should only match correct list comprehension /
  112. # generator expression variable names
  113. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  114. # Good variable names which should always be accepted, separated by a comma
  115. good-names=i,j,k,ex,Run,_
  116. # Bad variable names which should always be refused, separated by a comma
  117. bad-names=foo,bar,baz,toto,tutu,tata
  118. # Regular expression which should only match functions or classes name which do
  119. # not require a docstring
  120. no-docstring-rgx=__.*__
  121. [CLASSES]
  122. # List of interface methods to ignore, separated by a comma. This is used for
  123. # instance to not check methods defines in Zope's Interface base class.
  124. ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
  125. # List of method names used to declare (i.e. assign) instance attributes.
  126. defining-attr-methods=__init__,__new__,setUp
  127. # List of valid names for the first argument in a class method.
  128. valid-classmethod-first-arg=cls
  129. [DESIGN]
  130. # Maximum number of arguments for function / method
  131. max-args=5
  132. # Argument names that match this expression will be ignored. Default to name
  133. # with leading underscore
  134. ignored-argument-names=_.*
  135. # Maximum number of locals for function / method body
  136. max-locals=15
  137. # Maximum number of return / yield for function / method body
  138. max-returns=6
  139. # Maximum number of branch for function / method body
  140. max-branchs=12
  141. # Maximum number of statements in function / method body
  142. max-statements=50
  143. # Maximum number of parents for a class (see R0901).
  144. max-parents=7
  145. # Maximum number of attributes for a class (see R0902).
  146. max-attributes=7
  147. # Minimum number of public methods for a class (see R0903).
  148. min-public-methods=2
  149. # Maximum number of public methods for a class (see R0904).
  150. max-public-methods=20
  151. [IMPORTS]
  152. # Deprecated modules which should not be used, separated by a comma
  153. deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
  154. # Create a graph of every (i.e. internal and external) dependencies in the
  155. # given file (report RP0402 must not be disabled)
  156. import-graph=
  157. # Create a graph of external dependencies in the given file (report RP0402 must
  158. # not be disabled)
  159. ext-import-graph=
  160. # Create a graph of internal dependencies in the given file (report RP0402 must
  161. # not be disabled)
  162. int-import-graph=
  163. [EXCEPTIONS]
  164. # Exceptions that will emit a warning when being caught. Defaults to
  165. # "Exception"
  166. overgeneral-exceptions=Exception