mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-11-27 02:29:29 +00:00
style: add more pylint checks and update code for them
This commit is contained in:
1 parent
4f839a7e6a
commit
36b7972b26
211 files changed
+951
-955
No files matched your search
+20
-23
@@ -1,8 +1,11 @@
|
||||
[tool.pylint.main]
|
||||
init-hook = "sys.path.append('tools')"
|
||||
load-plugins = [
|
||||
"pylint.extensions.docparams",
|
||||
"pylint.extensions.bad_builtin",
|
||||
"pylint.extensions.check_elif",
|
||||
"pylint.extensions.docparams",
|
||||
"pylint.extensions.overlapping_exceptions",
|
||||
"pylint.extensions.typing",
|
||||
"pylint_plugins.definition_order",
|
||||
"pylint_plugins.import_order",
|
||||
]
|
||||
@@ -17,29 +20,23 @@ max-parents = 15
|
||||
|
||||
[tool.pylint."messages control"]
|
||||
disable = [
|
||||
"raw-checker-failed",
|
||||
"bad-inline-option",
|
||||
"locally-disabled",
|
||||
"file-ignored",
|
||||
"suppressed-message",
|
||||
"useless-suppression",
|
||||
"deprecated-pragma",
|
||||
"use-symbolic-message-instead",
|
||||
"use-implicit-booleaness-not-comparison-to-string",
|
||||
"use-implicit-booleaness-not-comparison-to-zero",
|
||||
"missing-module-docstring",
|
||||
"line-too-long",
|
||||
"no-name-in-module",
|
||||
"import-outside-toplevel",
|
||||
"invalid-name",
|
||||
"raise-missing-from",
|
||||
"wrong-import-order",
|
||||
"too-few-public-methods",
|
||||
"too-many-instance-attributes",
|
||||
"broad-exception-caught",
|
||||
"fixme",
|
||||
"too-many-arguments",
|
||||
"duplicate-code",
|
||||
"cyclic-import",
|
||||
"duplicate-code",
|
||||
"fixme",
|
||||
"import-outside-toplevel",
|
||||
"line-too-long",
|
||||
"missing-module-docstring",
|
||||
"no-name-in-module",
|
||||
"raise-missing-from",
|
||||
"raw-checker-failed",
|
||||
"suppressed-message",
|
||||
"too-few-public-methods",
|
||||
"too-many-arguments",
|
||||
"too-many-instance-attributes",
|
||||
"too-many-positional-arguments",
|
||||
"wrong-import-order",
|
||||
]
|
||||
|
||||
[tool.pylint.string]
|
||||
check-quote-consistency = true
|
||||
Reference in new issue
Block a user