.pylintrc 8.3 KB

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