pylintrc 4.5 KB

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