pylintrc 4.4 KB

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