pylintrc 5.0 KB

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