You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

582 lines
17KB

  1. [MASTER]
  2. # A comma-separated list of package or module names from where C extensions may
  3. # be loaded. Extensions are loading into the active Python interpreter and may
  4. # run arbitrary code.
  5. extension-pkg-whitelist=
  6. # Add files or directories to the blacklist. They should be base names, not
  7. # paths.
  8. ignore=CVS
  9. # Add files or directories matching the regex patterns to the blacklist. The
  10. # regex matches against base names, not paths.
  11. ignore-patterns=
  12. # Python code to execute, usually for sys.path manipulation such as
  13. # pygtk.require().
  14. #init-hook=
  15. # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
  16. # number of processors available to use.
  17. jobs=1
  18. # Control the amount of potential inferred values when inferring a single
  19. # object. This can help the performance when dealing with large functions or
  20. # complex, nested conditions.
  21. limit-inference-results=100
  22. # List of plugins (as comma separated values of python module names) to load,
  23. # usually to register additional checkers.
  24. load-plugins=
  25. # Pickle collected data for later comparisons.
  26. persistent=yes
  27. # Specify a configuration file.
  28. #rcfile=
  29. # When enabled, pylint would attempt to guess common misconfiguration and emit
  30. # user-friendly hints instead of false-positive error messages.
  31. suggestion-mode=yes
  32. # Allow loading of arbitrary C extensions. Extensions are imported into the
  33. # active Python interpreter and may run arbitrary code.
  34. unsafe-load-any-extension=no
  35. [MESSAGES CONTROL]
  36. # Only show warnings with the listed confidence levels. Leave empty to show
  37. # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
  38. confidence=
  39. # Disable the message, report, category or checker with the given id(s). You
  40. # can either give multiple identifiers separated by comma (,) or put this
  41. # option multiple times (only on the command line, not in the configuration
  42. # file where it should appear only once). You can also use "--disable=all" to
  43. # disable everything first and then reenable specific checks. For example, if
  44. # you want to run only the similarities checker, you can use "--disable=all
  45. # --enable=similarities". If you want to run only the classes checker, but have
  46. # no Warning level messages displayed, use "--disable=all --enable=classes
  47. # --disable=W".
  48. disable=print-statement,
  49. parameter-unpacking,
  50. unpacking-in-except,
  51. old-raise-syntax,
  52. backtick,
  53. long-suffix,
  54. old-ne-operator,
  55. old-octal-literal,
  56. import-star-module-level,
  57. non-ascii-bytes-literal,
  58. raw-checker-failed,
  59. bad-inline-option,
  60. locally-disabled,
  61. file-ignored,
  62. suppressed-message,
  63. useless-suppression,
  64. deprecated-pragma,
  65. use-symbolic-message-instead,
  66. apply-builtin,
  67. basestring-builtin,
  68. buffer-builtin,
  69. cmp-builtin,
  70. coerce-builtin,
  71. execfile-builtin,
  72. file-builtin,
  73. long-builtin,
  74. raw_input-builtin,
  75. reduce-builtin,
  76. standarderror-builtin,
  77. unicode-builtin,
  78. xrange-builtin,
  79. coerce-method,
  80. delslice-method,
  81. getslice-method,
  82. setslice-method,
  83. no-absolute-import,
  84. old-division,
  85. dict-iter-method,
  86. dict-view-method,
  87. next-method-called,
  88. metaclass-assignment,
  89. indexing-exception,
  90. raising-string,
  91. reload-builtin,
  92. oct-method,
  93. hex-method,
  94. nonzero-method,
  95. cmp-method,
  96. input-builtin,
  97. round-builtin,
  98. intern-builtin,
  99. unichr-builtin,
  100. map-builtin-not-iterating,
  101. zip-builtin-not-iterating,
  102. range-builtin-not-iterating,
  103. filter-builtin-not-iterating,
  104. using-cmp-argument,
  105. eq-without-hash,
  106. div-method,
  107. idiv-method,
  108. rdiv-method,
  109. exception-message-attribute,
  110. invalid-str-codec,
  111. sys-max-int,
  112. bad-python3-import,
  113. deprecated-string-function,
  114. deprecated-str-translate-call,
  115. deprecated-itertools-function,
  116. deprecated-types-field,
  117. next-method-defined,
  118. dict-items-not-iterating,
  119. dict-keys-not-iterating,
  120. dict-values-not-iterating,
  121. deprecated-operator-function,
  122. deprecated-urllib-function,
  123. xreadlines-attribute,
  124. deprecated-sys-function,
  125. exception-escape,
  126. comprehension-escape
  127. # Enable the message, report, category or checker with the given id(s). You can
  128. # either give multiple identifier separated by comma (,) or put this option
  129. # multiple time (only on the command line, not in the configuration file where
  130. # it should appear only once). See also the "--disable" option for examples.
  131. enable=c-extension-no-member
  132. [REPORTS]
  133. # Python expression which should return a score less than or equal to 10. You
  134. # have access to the variables 'error', 'warning', 'refactor', and 'convention'
  135. # which contain the number of messages in each category, as well as 'statement'
  136. # which is the total number of statements analyzed. This score is used by the
  137. # global evaluation report (RP0004).
  138. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  139. # Template used to display messages. This is a python new-style format string
  140. # used to format the message information. See doc for all details.
  141. #msg-template=
  142. # Set the output format. Available formats are text, parseable, colorized, json
  143. # and msvs (visual studio). You can also give a reporter class, e.g.
  144. # mypackage.mymodule.MyReporterClass.
  145. output-format=text
  146. # Tells whether to display a full report or only the messages.
  147. reports=no
  148. # Activate the evaluation score.
  149. score=yes
  150. [REFACTORING]
  151. # Maximum number of nested blocks for function / method body
  152. max-nested-blocks=5
  153. # Complete name of functions that never returns. When checking for
  154. # inconsistent-return-statements if a never returning function is called then
  155. # it will be considered as an explicit return statement and no message will be
  156. # printed.
  157. never-returning-functions=sys.exit
  158. [SPELLING]
  159. # Limits count of emitted suggestions for spelling mistakes.
  160. max-spelling-suggestions=4
  161. # Spelling dictionary name. Available dictionaries: none. To make it work,
  162. # install the python-enchant package.
  163. spelling-dict=
  164. # List of comma separated words that should not be checked.
  165. spelling-ignore-words=
  166. # A path to a file that contains the private dictionary; one word per line.
  167. spelling-private-dict-file=
  168. # Tells whether to store unknown words to the private dictionary (see the
  169. # --spelling-private-dict-file option) instead of raising a message.
  170. spelling-store-unknown-words=no
  171. [FORMAT]
  172. # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
  173. expected-line-ending-format=
  174. # Regexp for a line that is allowed to be longer than the limit.
  175. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  176. # Number of spaces of indent required inside a hanging or continued line.
  177. indent-after-paren=4
  178. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  179. # tab).
  180. indent-string=' '
  181. # Maximum number of characters on a single line.
  182. max-line-length=100
  183. # Maximum number of lines in a module.
  184. max-module-lines=1000
  185. # List of optional constructs for which whitespace checking is disabled. `dict-
  186. # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
  187. # `trailing-comma` allows a space between comma and closing bracket: (a, ).
  188. # `empty-line` allows space-only lines.
  189. no-space-check=trailing-comma,
  190. dict-separator
  191. # Allow the body of a class to be on the same line as the declaration if body
  192. # contains single statement.
  193. single-line-class-stmt=no
  194. # Allow the body of an if to be on the same line as the test if there is no
  195. # else.
  196. single-line-if-stmt=no
  197. [BASIC]
  198. # Naming style matching correct argument names.
  199. argument-naming-style=snake_case
  200. # Regular expression matching correct argument names. Overrides argument-
  201. # naming-style.
  202. #argument-rgx=
  203. # Naming style matching correct attribute names.
  204. attr-naming-style=snake_case
  205. # Regular expression matching correct attribute names. Overrides attr-naming-
  206. # style.
  207. #attr-rgx=
  208. # Bad variable names which should always be refused, separated by a comma.
  209. bad-names=foo,
  210. bar,
  211. baz,
  212. toto,
  213. tutu,
  214. tata
  215. # Naming style matching correct class attribute names.
  216. class-attribute-naming-style=any
  217. # Regular expression matching correct class attribute names. Overrides class-
  218. # attribute-naming-style.
  219. #class-attribute-rgx=
  220. # Naming style matching correct class names.
  221. class-naming-style=PascalCase
  222. # Regular expression matching correct class names. Overrides class-naming-
  223. # style.
  224. #class-rgx=
  225. # Naming style matching correct constant names.
  226. const-naming-style=UPPER_CASE
  227. # Regular expression matching correct constant names. Overrides const-naming-
  228. # style.
  229. #const-rgx=
  230. # Minimum line length for functions/classes that require docstrings, shorter
  231. # ones are exempt.
  232. docstring-min-length=-1
  233. # Naming style matching correct function names.
  234. function-naming-style=snake_case
  235. # Regular expression matching correct function names. Overrides function-
  236. # naming-style.
  237. #function-rgx=
  238. # Good variable names which should always be accepted, separated by a comma.
  239. good-names=i,
  240. j,
  241. k,
  242. ex,
  243. Run,
  244. _
  245. # Include a hint for the correct naming format with invalid-name.
  246. include-naming-hint=no
  247. # Naming style matching correct inline iteration names.
  248. inlinevar-naming-style=any
  249. # Regular expression matching correct inline iteration names. Overrides
  250. # inlinevar-naming-style.
  251. #inlinevar-rgx=
  252. # Naming style matching correct method names.
  253. method-naming-style=snake_case
  254. # Regular expression matching correct method names. Overrides method-naming-
  255. # style.
  256. #method-rgx=
  257. # Naming style matching correct module names.
  258. module-naming-style=snake_case
  259. # Regular expression matching correct module names. Overrides module-naming-
  260. # style.
  261. #module-rgx=
  262. # Colon-delimited sets of names that determine each other's naming style when
  263. # the name regexes allow several styles.
  264. name-group=
  265. # Regular expression which should only match function or class names that do
  266. # not require a docstring.
  267. no-docstring-rgx=^_
  268. # List of decorators that produce properties, such as abc.abstractproperty. Add
  269. # to this list to register other decorators that produce valid properties.
  270. # These decorators are taken in consideration only for invalid-name.
  271. property-classes=abc.abstractproperty
  272. # Naming style matching correct variable names.
  273. variable-naming-style=snake_case
  274. # Regular expression matching correct variable names. Overrides variable-
  275. # naming-style.
  276. #variable-rgx=
  277. [TYPECHECK]
  278. # List of decorators that produce context managers, such as
  279. # contextlib.contextmanager. Add to this list to register other decorators that
  280. # produce valid context managers.
  281. contextmanager-decorators=contextlib.contextmanager
  282. # List of members which are set dynamically and missed by pylint inference
  283. # system, and so shouldn't trigger E1101 when accessed. Python regular
  284. # expressions are accepted.
  285. generated-members=
  286. # Tells whether missing members accessed in mixin class should be ignored. A
  287. # mixin class is detected if its name ends with "mixin" (case insensitive).
  288. ignore-mixin-members=yes
  289. # Tells whether to warn about missing members when the owner of the attribute
  290. # is inferred to be None.
  291. ignore-none=yes
  292. # This flag controls whether pylint should warn about no-member and similar
  293. # checks whenever an opaque object is returned when inferring. The inference
  294. # can return multiple potential results while evaluating a Python object, but
  295. # some branches might not be evaluated, which results in partial inference. In
  296. # that case, it might be useful to still emit no-member and other checks for
  297. # the rest of the inferred objects.
  298. ignore-on-opaque-inference=yes
  299. # List of class names for which member attributes should not be checked (useful
  300. # for classes with dynamically set attributes). This supports the use of
  301. # qualified names.
  302. ignored-classes=optparse.Values,thread._local,_thread._local
  303. # List of module names for which member attributes should not be checked
  304. # (useful for modules/projects where namespaces are manipulated during runtime
  305. # and thus existing member attributes cannot be deduced by static analysis). It
  306. # supports qualified module names, as well as Unix pattern matching.
  307. ignored-modules=
  308. # Show a hint with possible names when a member name was not found. The aspect
  309. # of finding the hint is based on edit distance.
  310. missing-member-hint=yes
  311. # The minimum edit distance a name should have in order to be considered a
  312. # similar match for a missing member name.
  313. missing-member-hint-distance=1
  314. # The total number of similar names that should be taken in consideration when
  315. # showing a hint for a missing member.
  316. missing-member-max-choices=1
  317. # List of decorators that change the signature of a decorated function.
  318. signature-mutators=
  319. [VARIABLES]
  320. # List of additional names supposed to be defined in builtins. Remember that
  321. # you should avoid defining new builtins when possible.
  322. additional-builtins=
  323. # Tells whether unused global variables should be treated as a violation.
  324. allow-global-unused-variables=yes
  325. # List of strings which can identify a callback function by name. A callback
  326. # name must start or end with one of those strings.
  327. callbacks=cb_,
  328. _cb
  329. # A regular expression matching the name of dummy variables (i.e. expected to
  330. # not be used).
  331. dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
  332. # Argument names that match this expression will be ignored. Default to name
  333. # with leading underscore.
  334. ignored-argument-names=_.*|^ignored_|^unused_
  335. # Tells whether we should check for unused import in __init__ files.
  336. init-import=no
  337. # List of qualified module names which can have objects that can redefine
  338. # builtins.
  339. redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
  340. [STRING]
  341. # This flag controls whether the implicit-str-concat-in-sequence should
  342. # generate a warning on implicit string concatenation in sequences defined over
  343. # several lines.
  344. check-str-concat-over-line-jumps=no
  345. [LOGGING]
  346. # Format style used to check logging format string. `old` means using %
  347. # formatting, `new` is for `{}` formatting,and `fstr` is for f-strings.
  348. logging-format-style=old
  349. # Logging modules to check that the string format arguments are in logging
  350. # function parameter format.
  351. logging-modules=logging
  352. [MISCELLANEOUS]
  353. # List of note tags to take in consideration, separated by a comma.
  354. notes=FIXME,
  355. XXX,
  356. TODO
  357. [SIMILARITIES]
  358. # Ignore comments when computing similarities.
  359. ignore-comments=yes
  360. # Ignore docstrings when computing similarities.
  361. ignore-docstrings=yes
  362. # Ignore imports when computing similarities.
  363. ignore-imports=no
  364. # Minimum lines number of a similarity.
  365. min-similarity-lines=4
  366. [DESIGN]
  367. # Maximum number of arguments for function / method.
  368. max-args=5
  369. # Maximum number of attributes for a class (see R0902).
  370. max-attributes=7
  371. # Maximum number of boolean expressions in an if statement (see R0916).
  372. max-bool-expr=5
  373. # Maximum number of branch for function / method body.
  374. max-branches=12
  375. # Maximum number of locals for function / method body.
  376. max-locals=15
  377. # Maximum number of parents for a class (see R0901).
  378. max-parents=7
  379. # Maximum number of public methods for a class (see R0904).
  380. max-public-methods=20
  381. # Maximum number of return / yield for function / method body.
  382. max-returns=6
  383. # Maximum number of statements in function / method body.
  384. max-statements=50
  385. # Minimum number of public methods for a class (see R0903).
  386. min-public-methods=2
  387. [IMPORTS]
  388. # List of modules that can be imported at any level, not just the top level
  389. # one.
  390. allow-any-import-level=
  391. # Allow wildcard imports from modules that define __all__.
  392. allow-wildcard-with-all=no
  393. # Analyse import fallback blocks. This can be used to support both Python 2 and
  394. # 3 compatible code, which means that the block might have code that exists
  395. # only in one or another interpreter, leading to false positives when analysed.
  396. analyse-fallback-blocks=no
  397. # Deprecated modules which should not be used, separated by a comma.
  398. deprecated-modules=optparse,tkinter.tix
  399. # Create a graph of external dependencies in the given file (report RP0402 must
  400. # not be disabled).
  401. ext-import-graph=
  402. # Create a graph of every (i.e. internal and external) dependencies in the
  403. # given file (report RP0402 must not be disabled).
  404. import-graph=
  405. # Create a graph of internal dependencies in the given file (report RP0402 must
  406. # not be disabled).
  407. int-import-graph=
  408. # Force import order to recognize a module as part of the standard
  409. # compatibility libraries.
  410. known-standard-library=
  411. # Force import order to recognize a module as part of a third party library.
  412. known-third-party=enchant
  413. # Couples of modules and preferred modules, separated by a comma.
  414. preferred-modules=
  415. [CLASSES]
  416. # List of method names used to declare (i.e. assign) instance attributes.
  417. defining-attr-methods=__init__,
  418. __new__,
  419. setUp,
  420. __post_init__
  421. # List of member names, which should be excluded from the protected access
  422. # warning.
  423. exclude-protected=_asdict,
  424. _fields,
  425. _replace,
  426. _source,
  427. _make
  428. # List of valid names for the first argument in a class method.
  429. valid-classmethod-first-arg=cls
  430. # List of valid names for the first argument in a metaclass class method.
  431. valid-metaclass-classmethod-first-arg=cls
  432. [EXCEPTIONS]
  433. # Exceptions that will emit a warning when being caught. Defaults to
  434. # "BaseException, Exception".
  435. overgeneral-exceptions=BaseException,
  436. Exception