AI ニジカ綜合
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.

.pylintrc 21 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. [MAIN]
  2. # Analyse import fallback blocks. This can be used to support both Python 2 and
  3. # 3 compatible code, which means that the block might have code that exists
  4. # only in one or another interpreter, leading to false positives when analysed.
  5. analyse-fallback-blocks=no
  6. # Clear in-memory caches upon conclusion of linting. Useful if running pylint
  7. # in a server-like mode.
  8. clear-cache-post-run=no
  9. # Load and enable all available extensions. Use --list-extensions to see a list
  10. # all available extensions.
  11. #enable-all-extensions=
  12. # In error mode, messages with a category besides ERROR or FATAL are
  13. # suppressed, and no reports are done by default. Error mode is compatible with
  14. # disabling specific errors.
  15. #errors-only=
  16. # Always return a 0 (non-error) status code, even if lint errors are found.
  17. # This is primarily useful in continuous integration scripts.
  18. #exit-zero=
  19. # A comma-separated list of package or module names from where C extensions may
  20. # be loaded. Extensions are loading into the active Python interpreter and may
  21. # run arbitrary code.
  22. extension-pkg-allow-list=
  23. # A comma-separated list of package or module names from where C extensions may
  24. # be loaded. Extensions are loading into the active Python interpreter and may
  25. # run arbitrary code. (This is an alternative name to extension-pkg-allow-list
  26. # for backward compatibility.)
  27. extension-pkg-whitelist=
  28. # Return non-zero exit code if any of these messages/categories are detected,
  29. # even if score is above --fail-under value. Syntax same as enable. Messages
  30. # specified are enabled, while categories only check already-enabled messages.
  31. fail-on=
  32. # Specify a score threshold under which the program will exit with error.
  33. fail-under=10
  34. # Interpret the stdin as a python script, whose filename needs to be passed as
  35. # the module_or_package argument.
  36. #from-stdin=
  37. # Files or directories to be skipped. They should be base names, not paths.
  38. ignore=CVS
  39. # Add files or directories matching the regular expressions patterns to the
  40. # ignore-list. The regex matches against paths and can be in Posix or Windows
  41. # format. Because '\\' represents the directory delimiter on Windows systems,
  42. # it can't be used as an escape character.
  43. ignore-paths=
  44. # Files or directories matching the regular expression patterns are skipped.
  45. # The regex matches against base names, not paths. The default value ignores
  46. # Emacs file locks
  47. ignore-patterns=^\.#
  48. # List of module names for which member attributes should not be checked and
  49. # will not be imported (useful for modules/projects where namespaces are
  50. # manipulated during runtime and thus existing member attributes cannot be
  51. # deduced by static analysis). It supports qualified module names, as well as
  52. # Unix pattern matching.
  53. ignored-modules=
  54. # Python code to execute, usually for sys.path manipulation such as
  55. # pygtk.require().
  56. init-hook='import sys; sys.path.append(".")'
  57. # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
  58. # number of processors available to use, and will cap the count on Windows to
  59. # avoid hangs.
  60. jobs=1
  61. # Control the amount of potential inferred values when inferring a single
  62. # object. This can help the performance when dealing with large functions or
  63. # complex, nested conditions.
  64. limit-inference-results=100
  65. # List of plugins (as comma separated values of python module names) to load,
  66. # usually to register additional checkers.
  67. load-plugins=
  68. # Pickle collected data for later comparisons.
  69. persistent=yes
  70. # Resolve imports to .pyi stubs if available. May reduce no-member messages and
  71. # increase not-an-iterable messages.
  72. prefer-stubs=no
  73. # Minimum Python version to use for version dependent checks. Will default to
  74. # the version used to run pylint.
  75. py-version=3.13
  76. # Discover python modules and packages in the file system subtree.
  77. recursive=no
  78. # Add paths to the list of the source roots. Supports globbing patterns. The
  79. # source root is an absolute path or a path relative to the current working
  80. # directory used to determine a package namespace for modules located under the
  81. # source root.
  82. source-roots=
  83. # When enabled, pylint would attempt to guess common misconfiguration and emit
  84. # user-friendly hints instead of false-positive error messages.
  85. suggestion-mode=yes
  86. # Allow loading of arbitrary C extensions. Extensions are imported into the
  87. # active Python interpreter and may run arbitrary code.
  88. unsafe-load-any-extension=no
  89. # In verbose mode, extra non-checker-related info will be displayed.
  90. #verbose=
  91. [BASIC]
  92. # Naming style matching correct argument names.
  93. argument-naming-style=snake_case
  94. # Regular expression matching correct argument names. Overrides argument-
  95. # naming-style. If left empty, argument names will be checked with the set
  96. # naming style.
  97. #argument-rgx=
  98. # Naming style matching correct attribute names.
  99. attr-naming-style=snake_case
  100. # Regular expression matching correct attribute names. Overrides attr-naming-
  101. # style. If left empty, attribute names will be checked with the set naming
  102. # style.
  103. #attr-rgx=
  104. # Bad variable names which should always be refused, separated by a comma.
  105. bad-names=foo,
  106. bar,
  107. baz,
  108. toto,
  109. tutu,
  110. tata
  111. # Bad variable names regexes, separated by a comma. If names match any regex,
  112. # they will always be refused
  113. bad-names-rgxs=
  114. # Naming style matching correct class attribute names.
  115. class-attribute-naming-style=any
  116. # Regular expression matching correct class attribute names. Overrides class-
  117. # attribute-naming-style. If left empty, class attribute names will be checked
  118. # with the set naming style.
  119. #class-attribute-rgx=
  120. # Naming style matching correct class constant names.
  121. class-const-naming-style=UPPER_CASE
  122. # Regular expression matching correct class constant names. Overrides class-
  123. # const-naming-style. If left empty, class constant names will be checked with
  124. # the set naming style.
  125. #class-const-rgx=
  126. # Naming style matching correct class names.
  127. class-naming-style=PascalCase
  128. # Regular expression matching correct class names. Overrides class-naming-
  129. # style. If left empty, class names will be checked with the set naming style.
  130. #class-rgx=
  131. # Naming style matching correct constant names.
  132. const-naming-style=UPPER_CASE
  133. # Regular expression matching correct constant names. Overrides const-naming-
  134. # style. If left empty, constant names will be checked with the set naming
  135. # style.
  136. #const-rgx=
  137. # Minimum line length for functions/classes that require docstrings, shorter
  138. # ones are exempt.
  139. docstring-min-length=-1
  140. # Naming style matching correct function names.
  141. function-naming-style=snake_case
  142. # Regular expression matching correct function names. Overrides function-
  143. # naming-style. If left empty, function names will be checked with the set
  144. # naming style.
  145. #function-rgx=
  146. # Good variable names which should always be accepted, separated by a comma.
  147. good-names=i,
  148. j,
  149. k,
  150. ex,
  151. Run,
  152. _
  153. # Good variable names regexes, separated by a comma. If names match any regex,
  154. # they will always be accepted
  155. good-names-rgxs=
  156. # Include a hint for the correct naming format with invalid-name.
  157. include-naming-hint=no
  158. # Naming style matching correct inline iteration names.
  159. inlinevar-naming-style=any
  160. # Regular expression matching correct inline iteration names. Overrides
  161. # inlinevar-naming-style. If left empty, inline iteration names will be checked
  162. # with the set naming style.
  163. #inlinevar-rgx=
  164. # Naming style matching correct method names.
  165. method-naming-style=snake_case
  166. # Regular expression matching correct method names. Overrides method-naming-
  167. # style. If left empty, method names will be checked with the set naming style.
  168. #method-rgx=
  169. # Naming style matching correct module names.
  170. module-naming-style=snake_case
  171. # Regular expression matching correct module names. Overrides module-naming-
  172. # style. If left empty, module names will be checked with the set naming style.
  173. #module-rgx=
  174. # Colon-delimited sets of names that determine each other's naming style when
  175. # the name regexes allow several styles.
  176. name-group=
  177. # Regular expression which should only match function or class names that do
  178. # not require a docstring.
  179. no-docstring-rgx=^_
  180. # List of decorators that produce properties, such as abc.abstractproperty. Add
  181. # to this list to register other decorators that produce valid properties.
  182. # These decorators are taken in consideration only for invalid-name.
  183. property-classes=abc.abstractproperty
  184. # Regular expression matching correct type alias names. If left empty, type
  185. # alias names will be checked with the set naming style.
  186. #typealias-rgx=
  187. # Regular expression matching correct type variable names. If left empty, type
  188. # variable names will be checked with the set naming style.
  189. #typevar-rgx=
  190. # Naming style matching correct variable names.
  191. variable-naming-style=snake_case
  192. # Regular expression matching correct variable names. Overrides variable-
  193. # naming-style. If left empty, variable names will be checked with the set
  194. # naming style.
  195. #variable-rgx=
  196. [CLASSES]
  197. # Warn about protected attribute access inside special methods
  198. check-protected-access-in-special-methods=no
  199. # List of method names used to declare (i.e. assign) instance attributes.
  200. defining-attr-methods=__init__,
  201. __new__,
  202. setUp,
  203. asyncSetUp,
  204. __post_init__
  205. # List of member names, which should be excluded from the protected access
  206. # warning.
  207. exclude-protected=_asdict,_fields,_replace,_source,_make,os._exit
  208. # List of valid names for the first argument in a class method.
  209. valid-classmethod-first-arg=cls
  210. # List of valid names for the first argument in a metaclass class method.
  211. valid-metaclass-classmethod-first-arg=mcs
  212. [DESIGN]
  213. # List of regular expressions of class ancestor names to ignore when counting
  214. # public methods (see R0903)
  215. exclude-too-few-public-methods=
  216. # List of qualified class names to ignore when counting class parents (see
  217. # R0901)
  218. ignored-parents=
  219. # Maximum number of arguments for function / method.
  220. max-args=5
  221. # Maximum number of attributes for a class (see R0902).
  222. max-attributes=7
  223. # Maximum number of boolean expressions in an if statement (see R0916).
  224. max-bool-expr=5
  225. # Maximum number of branch for function / method body.
  226. max-branches=12
  227. # Maximum number of locals for function / method body.
  228. max-locals=15
  229. # Maximum number of parents for a class (see R0901).
  230. max-parents=7
  231. # Maximum number of positional arguments for function / method.
  232. max-positional-arguments=5
  233. # Maximum number of public methods for a class (see R0904).
  234. max-public-methods=20
  235. # Maximum number of return / yield for function / method body.
  236. max-returns=6
  237. # Maximum number of statements in function / method body.
  238. max-statements=50
  239. # Minimum number of public methods for a class (see R0903).
  240. min-public-methods=2
  241. [EXCEPTIONS]
  242. # Exceptions that will emit a warning when caught.
  243. overgeneral-exceptions=builtins.BaseException,builtins.Exception
  244. [FORMAT]
  245. # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
  246. expected-line-ending-format=
  247. # Regexp for a line that is allowed to be longer than the limit.
  248. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  249. # Number of spaces of indent required inside a hanging or continued line.
  250. indent-after-paren=4
  251. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  252. # tab).
  253. indent-string=' '
  254. # Maximum number of characters on a single line.
  255. max-line-length=100
  256. # Maximum number of lines in a module.
  257. max-module-lines=1000
  258. # Allow the body of a class to be on the same line as the declaration if body
  259. # contains single statement.
  260. single-line-class-stmt=no
  261. # Allow the body of an if to be on the same line as the test if there is no
  262. # else.
  263. single-line-if-stmt=no
  264. [IMPORTS]
  265. # List of modules that can be imported at any level, not just the top level
  266. # one.
  267. allow-any-import-level=
  268. # Allow explicit reexports by alias from a package __init__.
  269. allow-reexport-from-package=no
  270. # Allow wildcard imports from modules that define __all__.
  271. allow-wildcard-with-all=no
  272. # Deprecated modules which should not be used, separated by a comma.
  273. deprecated-modules=
  274. # Output a graph (.gv or any supported image format) of external dependencies
  275. # to the given file (report RP0402 must not be disabled).
  276. ext-import-graph=
  277. # Output a graph (.gv or any supported image format) of all (i.e. internal and
  278. # external) dependencies to the given file (report RP0402 must not be
  279. # disabled).
  280. import-graph=
  281. # Output a graph (.gv or any supported image format) of internal dependencies
  282. # to the given file (report RP0402 must not be disabled).
  283. int-import-graph=
  284. # Force import order to recognize a module as part of the standard
  285. # compatibility libraries.
  286. known-standard-library=
  287. # Force import order to recognize a module as part of a third party library.
  288. known-third-party=enchant
  289. # Couples of modules and preferred modules, separated by a comma.
  290. preferred-modules=
  291. [LOGGING]
  292. # The type of string formatting that logging methods do. `old` means using %
  293. # formatting, `new` is for `{}` formatting.
  294. logging-format-style=old
  295. # Logging modules to check that the string format arguments are in logging
  296. # function parameter format.
  297. logging-modules=logging
  298. [MESSAGES CONTROL]
  299. # Only show warnings with the listed confidence levels. Leave empty to show
  300. # all. Valid levels: HIGH, CONTROL_FLOW, INFERENCE, INFERENCE_FAILURE,
  301. # UNDEFINED.
  302. confidence=HIGH,
  303. CONTROL_FLOW,
  304. INFERENCE,
  305. INFERENCE_FAILURE,
  306. UNDEFINED
  307. # Disable the message, report, category or checker with the given id(s). You
  308. # can either give multiple identifiers separated by comma (,) or put this
  309. # option multiple times (only on the command line, not in the configuration
  310. # file where it should appear only once). You can also use "--disable=all" to
  311. # disable everything first and then re-enable specific checks. For example, if
  312. # you want to run only the similarities checker, you can use "--disable=all
  313. # --enable=similarities". If you want to run only the classes checker, but have
  314. # no Warning level messages displayed, use "--disable=all --enable=classes
  315. # --disable=W".
  316. disable=raw-checker-failed,
  317. bad-inline-option,
  318. locally-disabled,
  319. file-ignored,
  320. suppressed-message,
  321. useless-suppression,
  322. deprecated-pragma,
  323. use-symbolic-message-instead,
  324. use-implicit-booleaness-not-comparison-to-string,
  325. use-implicit-booleaness-not-comparison-to-zero
  326. # Enable the message, report, category or checker with the given id(s). You can
  327. # either give multiple identifier separated by comma (,) or put this option
  328. # multiple time (only on the command line, not in the configuration file where
  329. # it should appear only once). See also the "--disable" option for examples.
  330. enable=
  331. [METHOD_ARGS]
  332. # List of qualified names (i.e., library.method) which require a timeout
  333. # parameter e.g. 'requests.api.get,requests.api.post'
  334. timeout-methods=requests.api.delete,requests.api.get,requests.api.head,requests.api.options,requests.api.patch,requests.api.post,requests.api.put,requests.api.request
  335. [MISCELLANEOUS]
  336. # List of note tags to take in consideration, separated by a comma.
  337. notes=FIXME,
  338. XXX,
  339. TODO
  340. # Regular expression of note tags to take in consideration.
  341. notes-rgx=
  342. [REFACTORING]
  343. # Maximum number of nested blocks for function / method body
  344. max-nested-blocks=5
  345. # Complete name of functions that never returns. When checking for
  346. # inconsistent-return-statements if a never returning function is called then
  347. # it will be considered as an explicit return statement and no message will be
  348. # printed.
  349. never-returning-functions=sys.exit,argparse.parse_error
  350. # Let 'consider-using-join' be raised when the separator to join on would be
  351. # non-empty (resulting in expected fixes of the type: ``"- " + " -
  352. # ".join(items)``)
  353. suggest-join-with-non-empty-separator=yes
  354. [REPORTS]
  355. # Python expression which should return a score less than or equal to 10. You
  356. # have access to the variables 'fatal', 'error', 'warning', 'refactor',
  357. # 'convention', and 'info' which contain the number of messages in each
  358. # category, as well as 'statement' which is the total number of statements
  359. # analyzed. This score is used by the global evaluation report (RP0004).
  360. evaluation=max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10))
  361. # Template used to display messages. This is a python new-style format string
  362. # used to format the message information. See doc for all details.
  363. msg-template=
  364. # Set the output format. Available formats are: text, parseable, colorized,
  365. # json2 (improved json format), json (old json format) and msvs (visual
  366. # studio). You can also give a reporter class, e.g.
  367. # mypackage.mymodule.MyReporterClass.
  368. #output-format=
  369. # Tells whether to display a full report or only the messages.
  370. reports=no
  371. # Activate the evaluation score.
  372. score=yes
  373. [SIMILARITIES]
  374. # Comments are removed from the similarity computation
  375. ignore-comments=yes
  376. # Docstrings are removed from the similarity computation
  377. ignore-docstrings=yes
  378. # Imports are removed from the similarity computation
  379. ignore-imports=yes
  380. # Signatures are removed from the similarity computation
  381. ignore-signatures=yes
  382. # Minimum lines number of a similarity.
  383. min-similarity-lines=4
  384. [SPELLING]
  385. # Limits count of emitted suggestions for spelling mistakes.
  386. max-spelling-suggestions=4
  387. # Spelling dictionary name. No available dictionaries : You need to install
  388. # both the python package and the system dependency for enchant to work.
  389. spelling-dict=
  390. # List of comma separated words that should be considered directives if they
  391. # appear at the beginning of a comment and should not be checked.
  392. spelling-ignore-comment-directives=fmt: on,fmt: off,noqa:,noqa,nosec,isort:skip,mypy:
  393. # List of comma separated words that should not be checked.
  394. spelling-ignore-words=
  395. # A path to a file that contains the private dictionary; one word per line.
  396. spelling-private-dict-file=
  397. # Tells whether to store unknown words to the private dictionary (see the
  398. # --spelling-private-dict-file option) instead of raising a message.
  399. spelling-store-unknown-words=no
  400. [STRING]
  401. # This flag controls whether inconsistent-quotes generates a warning when the
  402. # character used as a quote delimiter is used inconsistently within a module.
  403. check-quote-consistency=no
  404. # This flag controls whether the implicit-str-concat should generate a warning
  405. # on implicit string concatenation in sequences defined over several lines.
  406. check-str-concat-over-line-jumps=no
  407. [TYPECHECK]
  408. # List of decorators that produce context managers, such as
  409. # contextlib.contextmanager. Add to this list to register other decorators that
  410. # produce valid context managers.
  411. contextmanager-decorators=contextlib.contextmanager
  412. # List of members which are set dynamically and missed by pylint inference
  413. # system, and so shouldn't trigger E1101 when accessed. Python regular
  414. # expressions are accepted.
  415. generated-members=
  416. # Tells whether to warn about missing members when the owner of the attribute
  417. # is inferred to be None.
  418. ignore-none=yes
  419. # This flag controls whether pylint should warn about no-member and similar
  420. # checks whenever an opaque object is returned when inferring. The inference
  421. # can return multiple potential results while evaluating a Python object, but
  422. # some branches might not be evaluated, which results in partial inference. In
  423. # that case, it might be useful to still emit no-member and other checks for
  424. # the rest of the inferred objects.
  425. ignore-on-opaque-inference=yes
  426. # List of symbolic message names to ignore for Mixin members.
  427. ignored-checks-for-mixins=no-member,
  428. not-async-context-manager,
  429. not-context-manager,
  430. attribute-defined-outside-init
  431. # List of class names for which member attributes should not be checked (useful
  432. # for classes with dynamically set attributes). This supports the use of
  433. # qualified names.
  434. ignored-classes=optparse.Values,thread._local,_thread._local,argparse.Namespace
  435. # Show a hint with possible names when a member name was not found. The aspect
  436. # of finding the hint is based on edit distance.
  437. missing-member-hint=yes
  438. # The minimum edit distance a name should have in order to be considered a
  439. # similar match for a missing member name.
  440. missing-member-hint-distance=1
  441. # The total number of similar names that should be taken in consideration when
  442. # showing a hint for a missing member.
  443. missing-member-max-choices=1
  444. # Regex pattern to define which classes are considered mixins.
  445. mixin-class-rgx=.*[Mm]ixin
  446. # List of decorators that change the signature of a decorated function.
  447. signature-mutators=
  448. [VARIABLES]
  449. # List of additional names supposed to be defined in builtins. Remember that
  450. # you should avoid defining new builtins when possible.
  451. additional-builtins=
  452. # Tells whether unused global variables should be treated as a violation.
  453. allow-global-unused-variables=yes
  454. # List of names allowed to shadow builtins
  455. allowed-redefined-builtins=
  456. # List of strings which can identify a callback function by name. A callback
  457. # name must start or end with one of those strings.
  458. callbacks=cb_,
  459. _cb
  460. # A regular expression matching the name of dummy variables (i.e. expected to
  461. # not be used).
  462. dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
  463. # Argument names that match this expression will be ignored.
  464. ignored-argument-names=_.*|^ignored_|^unused_
  465. # Tells whether we should check for unused import in __init__ files.
  466. init-import=no
  467. # List of qualified module names which can have objects that can redefine
  468. # builtins.
  469. redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io