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

+1 -2
View File
@@ -27,8 +27,7 @@ def _test_path(source_root: Path, source_file: Path) -> Path:
case ("ahriman", "web", "views", *_, source_name):
if source_name.endswith("_guard.py"):
return relative_path.parent / f"test_{source_name}"
else:
return relative_path.parent / f"test_view_{source_name}"
return relative_path.parent / f"test_view_{source_name}"
case (*_, source_name) if source_name.startswith("__"):
return relative_path.parent / f"test_{source_name.replace("__", "")}"
case _: