.pylintrc 5.0 KB

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