pylintrc 4.4 KB

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