mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-11-22 09:39:30 +00:00
type: add type annotation pylint check
Also run pylint against tests tree
This commit is contained in:
1 parent
71c5d58264
commit
0bd22a049c
39 files changed
+190
-61
No files matched your search
@@ -148,6 +148,31 @@ commands = [
|
||||
{ replace = "ref", of = ["flags", "pylint"], extend = true },
|
||||
"{[project]name}",
|
||||
],
|
||||
[
|
||||
"pylint",
|
||||
{ replace = "ref", of = ["flags", "pylint"], extend = true },
|
||||
"--disable",
|
||||
"""broad-exception-raised,\
|
||||
consider-using-f-string,\
|
||||
consider-using-from-import,\
|
||||
import-error,\
|
||||
methods-out-of-order,\
|
||||
no-member,\
|
||||
protected-access,\
|
||||
redefined-outer-name,\
|
||||
too-many-lines,\
|
||||
too-many-locals,\
|
||||
too-many-return-statements,\
|
||||
unnecessary-dunder-call,\
|
||||
unused-wildcard-import,\
|
||||
wildcard-import""",
|
||||
"--recursive",
|
||||
"y",
|
||||
"ahriman-core/tests/{[project]name}",
|
||||
"ahriman-triggers/tests/{[project]name}",
|
||||
"ahriman-web/tests/{[project]name}",
|
||||
"tests",
|
||||
],
|
||||
[
|
||||
"bandit",
|
||||
{ replace = "ref", of = ["flags", "bandit"], extend = true },
|
||||
@@ -165,6 +190,7 @@ commands = [
|
||||
"ahriman-core/tests/{[project]name}",
|
||||
"ahriman-triggers/tests/{[project]name}",
|
||||
"ahriman-web/tests/{[project]name}",
|
||||
"tests",
|
||||
],
|
||||
[
|
||||
"mypy",
|
||||
|
||||
Reference in new issue
Block a user