type: add type annotation pylint check

Also run pylint against tests tree
This commit is contained in:
arcanis committed 2026-11-18 14:30:17 +02:00
1 parent 71c5d58264
commit 0bd22a049c
39 files changed
+190 -61

No files matched your search

+26
View File
@@ -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",