Fuel testing
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.

pylintrc 6.8KB

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