pylintrc-2.6 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. # Default config file for our pylint-2.6 wrapper.
  2. [MASTER]
  3. # Specify a configuration file.
  4. #rcfile=
  5. # Python code to execute, usually for sys.path manipulation such as
  6. # pygtk.require().
  7. #init-hook=
  8. # Add files or directories to the blocklist. They should be base names, not
  9. # paths.
  10. ignore=CVS
  11. # Pickle collected data for later comparisons.
  12. persistent=yes
  13. # List of plugins (as comma separated values of python modules names) to load,
  14. # usually to register additional checkers.
  15. load-plugins=
  16. pylint_quotes
  17. # Configure quote preferences.
  18. string-quote = single-avoid-escape
  19. triple-quote = double
  20. docstring-quote = double
  21. [MESSAGES CONTROL]
  22. # Enable the message, report, category or checker with the given id(s). You can
  23. # either give multiple identifier separated by comma (,) or put this option
  24. # multiple time.
  25. #enable=
  26. # Disable the message, report, category or checker with the given id(s). You
  27. # can either give multiple identifier separated by comma (,) or put this option
  28. # multiple time (only on the command line, not in the configuration file where
  29. # it should appear only once).
  30. #
  31. # These should get enabled, but the codebase has too many violations currently:
  32. # bad-continuation
  33. # anomalous-backslash-in-string
  34. # bad-context-manager
  35. # bad-indentation
  36. # bad-str-strip-call
  37. # bad-whitespace
  38. # cell-var-from-loop
  39. # deprecated-lambda
  40. # eval-used
  41. # function-redefined
  42. # import-error
  43. # locally-enabled
  44. # missing-final-newline
  45. # no-init
  46. # no-name-in-module
  47. # no-self-use
  48. # not-callable
  49. # old-style-class
  50. # protected-access
  51. # superfluous-parens
  52. # super-on-old-class
  53. # too-many-function-args
  54. # trailing-whitespace
  55. # unnecessary-semicolon
  56. # unpacking-non-sequence
  57. # unused-import
  58. # useless-else-on-loop
  59. #
  60. # CHANGED:
  61. disable=
  62. invalid-name,
  63. missing-docstring,
  64. too-many-lines,
  65. bad-inline-option,
  66. locally-disabled,
  67. duplicate-code,
  68. too-many-ancestors,
  69. too-many-instance-attributes,
  70. too-few-public-methods,
  71. too-many-public-methods,
  72. too-many-return-statements,
  73. too-many-branches,
  74. too-many-arguments,
  75. too-many-locals,
  76. too-many-statements,
  77. abstract-class-not-used,
  78. abstract-class-little-used,
  79. exec-used,
  80. bad-builtin,
  81. star-args,
  82. deprecated-module,
  83. reimported,
  84. fixme,
  85. global-statement,
  86. broad-except,
  87. logging-not-lazy,
  88. bad-continuation,
  89. anomalous-backslash-in-string,
  90. assigning-non-slot,
  91. bad-context-manager,
  92. bad-indentation,
  93. bad-str-strip-call,
  94. bad-super-call,
  95. bad-whitespace,
  96. cell-var-from-loop,
  97. consider-using-enumerate,
  98. deprecated-lambda,
  99. deprecated-method,
  100. eval-used,
  101. function-redefined,
  102. import-error,
  103. invalid-docstring-quote,
  104. invalid-string-quote,
  105. invalid-triple-quote,
  106. locally-enabled,
  107. line-too-long,
  108. misplaced-comparison-constant,
  109. misplaced-bare-raise,
  110. missing-final-newline,
  111. multiple-imports,
  112. no-init,
  113. no-name-in-module,
  114. no-self-argument,
  115. no-self-use,
  116. not-an-iterable,
  117. not-callable,
  118. old-style-class,
  119. protected-access,
  120. redefined-variable-type,
  121. simplifiable-if-statement,
  122. singleton-comparison,
  123. superfluous-parens,
  124. super-on-old-class,
  125. too-many-boolean-expressions,
  126. too-many-function-args,
  127. too-many-nested-blocks,
  128. trailing-whitespace,
  129. undefined-variable,
  130. ungrouped-imports,
  131. unnecessary-semicolon,
  132. unneeded-not,
  133. unpacking-non-sequence,
  134. unsubscriptable-object,
  135. unsupported-membership-test,
  136. unused-import,
  137. useless-else-on-loop,
  138. using-constant-test,
  139. wrong-import-order,
  140. wrong-import-position,
  141. [REPORTS]
  142. # Set the output format. Available formats are text, parseable, colorized, msvs
  143. # (visual studio) and html
  144. output-format=text
  145. # Put messages in a separate file for each module / package specified on the
  146. # command line instead of printing them on stdout. Reports (if any) will be
  147. # written in a file name "pylint_global.[txt|html]".
  148. files-output=no
  149. # Tells whether to display a full report or only the messages
  150. # CHANGED:
  151. reports=no
  152. # Activate the evaluation score.
  153. score=no
  154. # Python expression which should return a note less than 10 (10 is the highest
  155. # note). You have access to the variables errors warning, statement which
  156. # respectively contain the number of errors / warnings messages and the total
  157. # number of statements analyzed. This is used by the global evaluation report
  158. # (RP0004).
  159. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  160. [VARIABLES]
  161. # Tells whether we should check for unused import in __init__ files.
  162. init-import=no
  163. # A regular expression matching the beginning of the name of dummy variables
  164. # (i.e. not used).
  165. dummy-variables-rgx=_|dummy
  166. # List of additional names supposed to be defined in builtins. Remember that
  167. # you should avoid to define new builtins when possible.
  168. additional-builtins=
  169. [TYPECHECK]
  170. # Tells whether missing members accessed in mixin class should be ignored. A
  171. # mixin class is detected if its name ends with "mixin" (case insensitive).
  172. ignore-mixin-members=yes
  173. # List of classes names for which member attributes should not be checked
  174. # (useful for classes with attributes dynamically set).
  175. ignored-classes=SQLObject,twisted.internet.reactor,hashlib,google.appengine.api.memcache
  176. # List of members which are set dynamically and missed by pylint inference
  177. # system, and so shouldn't trigger E0201 when accessed. Python regular
  178. # expressions are accepted.
  179. generated-members=REQUEST,acl_users,aq_parent,multiprocessing.managers.SyncManager
  180. [MISCELLANEOUS]
  181. # List of note tags to take in consideration, separated by a comma.
  182. notes=FIXME,XXX,TODO
  183. [SIMILARITIES]
  184. # Minimum lines number of a similarity.
  185. min-similarity-lines=4
  186. # Ignore comments when computing similarities.
  187. ignore-comments=yes
  188. # Ignore docstrings when computing similarities.
  189. ignore-docstrings=yes
  190. [FORMAT]
  191. # Maximum number of characters on a single line.
  192. max-line-length=80
  193. # Maximum number of lines in a module
  194. max-module-lines=1000
  195. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  196. # tab).
  197. # CHANGED:
  198. indent-string=' '
  199. [BASIC]
  200. # List of builtins function names that should not be used, separated by a comma
  201. bad-functions=map,filter,apply,input
  202. # Regular expression which should only match correct module names
  203. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  204. # Regular expression which should only match correct module level names
  205. const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  206. # Regular expression which should only match correct class names
  207. class-rgx=[A-Z_][a-zA-Z0-9]+$
  208. # Regular expression which should only match correct function names
  209. function-rgx=[a-z_][a-z0-9_]{2,30}$
  210. # Regular expression which should only match correct method names
  211. method-rgx=[a-z_][a-z0-9_]{2,30}$
  212. # Regular expression which should only match correct instance attribute names
  213. attr-rgx=[a-z_][a-z0-9_]{2,30}$
  214. # Regular expression which should only match correct argument names
  215. argument-rgx=[a-z_][a-z0-9_]{2,30}$
  216. # Regular expression which should only match correct variable names
  217. variable-rgx=[a-z_][a-z0-9_]{2,30}$
  218. # Regular expression which should only match correct list comprehension /
  219. # generator expression variable names
  220. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  221. # Good variable names which should always be accepted, separated by a comma
  222. good-names=i,j,k,ex,Run,_
  223. # Bad variable names which should always be refused, separated by a comma
  224. bad-names=foo,bar,baz,toto,tutu,tata
  225. # Regular expression which should only match functions or classes name which do
  226. # not require a docstring
  227. no-docstring-rgx=__.*__
  228. [DESIGN]
  229. # Maximum number of arguments for function / method
  230. max-args=5
  231. # Argument names that match this expression will be ignored. Default to name
  232. # with leading underscore
  233. ignored-argument-names=_.*
  234. # Maximum number of locals for function / method body
  235. max-locals=15
  236. # Maximum number of return / yield for function / method body
  237. max-returns=6
  238. # Maximum number of branch for function / method body
  239. max-branchs=12
  240. # Maximum number of statements in function / method body
  241. max-statements=50
  242. # Maximum number of parents for a class (see R0901).
  243. max-parents=7
  244. # Maximum number of attributes for a class (see R0902).
  245. max-attributes=7
  246. # Minimum number of public methods for a class (see R0903).
  247. min-public-methods=2
  248. # Maximum number of public methods for a class (see R0904).
  249. max-public-methods=20
  250. [CLASSES]
  251. # List of method names used to declare (i.e. assign) instance attributes.
  252. defining-attr-methods=__init__,__new__,setUp
  253. # List of valid names for the first argument in a class method.
  254. valid-classmethod-first-arg=cls
  255. [IMPORTS]
  256. # Deprecated modules which should not be used, separated by a comma
  257. deprecated-modules=regsub,string,TERMIOS,Bastion,rexec
  258. # Create a graph of every (i.e. internal and external) dependencies in the
  259. # given file (report RP0402 must not be disabled)
  260. import-graph=
  261. # Create a graph of external dependencies in the given file (report RP0402 must
  262. # not be disabled)
  263. ext-import-graph=
  264. # Create a graph of internal dependencies in the given file (report RP0402 must
  265. # not be disabled)
  266. int-import-graph=
  267. [EXCEPTIONS]
  268. # Exceptions that will emit a warning when being caught. Defaults to
  269. # "Exception"
  270. overgeneral-exceptions=Exception