.pylintrc 4.8 KB

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