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
+1
-2
@@ -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 _:
|
||||
|
||||
Reference in new issue
Block a user