.pylintrc 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. [MASTER]
  2. persistent=no
  3. ignore=tests
  4. [MESSAGES CONTROL]
  5. # abstract-class-little-used: see http://www.logilab.org/ticket/111138
  6. # deprecated-method:
  7. # enable again after disabling py-3.4.3 asyncio.ensure_future compat hack
  8. # not-an-iterable:
  9. # a lot of false possitives for asyncio (yield from (some coroutine))
  10. disable=
  11. abstract-class-little-used,
  12. bad-continuation,
  13. cyclic-import,
  14. deprecated-method,
  15. duplicate-code,
  16. file-ignored,
  17. fixme,
  18. import-outside-toplevel,
  19. locally-disabled,
  20. locally-enabled,
  21. logging-format-interpolation,
  22. missing-docstring,
  23. not-an-iterable,
  24. raise-missing-from,
  25. star-args,
  26. wrong-import-order
  27. [REPORTS]
  28. # Set the output format. Available formats are text, parseable, colorized, msvs
  29. # (visual studio) and html
  30. output-format=colorized
  31. #files-output=no
  32. reports=yes
  33. [TYPECHECK]
  34. ignored-classes=
  35. VMProperty,
  36. libvirt,libvirtError,
  37. dbus,SystemBus,
  38. PCIDevice
  39. ignore-mixin-members=yes
  40. generated-members=
  41. iter_entry_points,
  42. Element,ElementTree,QName,SubElement,fromstring,parse,tostring,
  43. [BASIC]
  44. # List of builtins function names that should not be used, separated by a comma
  45. bad-functions=apply,input
  46. # Regular expression which should only match correct module names
  47. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  48. # Regular expression which should only match correct module level names
  49. const-rgx=(([A-Za-z_][A-Za-z0-9_]*)|(__.*__))$
  50. # Regular expression which should only match correct class names
  51. class-rgx=([A-Z_][a-zA-Z0-9]+|TC_\d\d_[a-zA-Z0-9_]+)$
  52. # Regular expression which should only match correct function names
  53. function-rgx=[a-z_][a-z0-9_]{2,30}$
  54. # Regular expression which should only match correct method names
  55. method-rgx=[a-z_][a-z0-9_]{2,30}$
  56. # Regular expression which should only match correct instance attribute names
  57. attr-rgx=[a-z_][a-z0-9_]{2,30}$
  58. # Regular expression which should only match correct argument names
  59. argument-rgx=[a-z_][a-z0-9_]{2,30}$
  60. # Regular expression which should only match correct variable names
  61. variable-rgx=[a-z_][a-z0-9_]{2,30}$
  62. # Regular expression which should only match correct list comprehension /
  63. # generator expression variable names
  64. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  65. # Good variable names which should always be accepted, separated by a comma
  66. good-names=e,i,j,k,m,p,v,ex,Run,_,log,vm,xc,xs,ip,fd,fh,rw,st,tb,cb,ff
  67. # Bad variable names which should always be refused, separated by a comma
  68. bad-names=foo,bar,baz,toto,tutu,tata
  69. # Regular expression which should only match functions or classes name which do
  70. # not require a docstring
  71. no-docstring-rgx=__.*__
  72. [MISCELLANEOUS]
  73. # List of note tags to take in consideration, separated by a comma.
  74. notes=FIXME,FIX,XXX,TODO
  75. [FORMAT]
  76. # Maximum number of characters on a single line.
  77. max-line-length=80
  78. # Maximum number of lines in a module
  79. max-module-lines=3000
  80. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  81. # tab).
  82. indent-string=' '
  83. [VARIABLES]
  84. # Tells whether we should check for unused import in __init__ files.
  85. init-import=no
  86. # A regular expression matching the beginning of the name of dummy variables
  87. # (i.e. not used).
  88. dummy-variables-rgx=_|dummy
  89. [SIMILARITIES]
  90. # Minimum lines number of a similarity.
  91. min-similarity-lines=4
  92. # Ignore comments when computing similarities.
  93. ignore-comments=yes
  94. # Ignore docstrings when computing similarities.
  95. ignore-docstrings=yes
  96. [CLASSES]
  97. # List of method names used to declare (i.e. assign) instance attributes.
  98. defining-attr-methods=__init__,__new__,setUp
  99. # List of valid names for the first argument in a class method.
  100. valid-classmethod-first-arg=cls
  101. [IMPORTS]
  102. # Deprecated modules which should not be used, separated by a comma
  103. deprecated-modules=regsub,TERMIOS,Bastion,rexec
  104. # Create a graph of every (i.e. internal and external) dependencies in the
  105. # given file (report RP0402 must not be disabled)
  106. import-graph=
  107. # Create a graph of external dependencies in the given file (report RP0402 must
  108. # not be disabled)
  109. ext-import-graph=
  110. # Create a graph of internal dependencies in the given file (report RP0402 must
  111. # not be disabled)
  112. int-import-graph=
  113. [DESIGN]
  114. # Maximum number of arguments for function / method
  115. max-args=35
  116. # Argument names that match this expression will be ignored. Default to name
  117. # with leading underscore
  118. ignored-argument-names=_.*
  119. # Maximum number of locals for function / method body
  120. # Let's have max-args + 5
  121. max-locals=40
  122. # Maximum number of return / yield for function / method body
  123. max-returns=6
  124. # Maximum number of branch for function / method body
  125. # 4x the default value
  126. max-branches=48
  127. # Maximum number of statements in function / method body
  128. # Double default
  129. max-statements=100
  130. # Maximum number of parents for a class (see R0901).
  131. max-parents=7
  132. # Maximum number of attributes for a class (see R0902).
  133. max-attributes=15
  134. # Minimum number of public methods for a class (see R0903).
  135. min-public-methods=2
  136. # Maximum number of public methods for a class (see R0904).
  137. max-public-methods=100
  138. [EXCEPTIONS]
  139. # Exceptions that will emit a warning when being caught. Defaults to
  140. # "Exception"
  141. overgeneral-exceptions=Exception,EnvironmentError
  142. # vim: ft=conf