.pylintrc 7.2 KB

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