.pylintrc 7.6 KB

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