pylintrc 4.9 KB

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