.pylintrc 4.9 KB

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