pylintrc 4.9 KB

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