pylintrc 4.8 KB

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