pylintrc 4.4 KB

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