pylintrc 4.5 KB

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