.pylintrc 6.6 KB

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