CI: strict mypy check in github actions

mypy_files.txt is a list of files that will fail the CI if mypy finds errors in them
This commit is contained in:
beauxq
2024-04-06 10:53:21 -07:00
parent 885fb4aabe
commit caa31a5823
6 changed files with 37 additions and 3 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ class SuffixIdentifier:
def __init__(self, *args: str):
self.suffixes = args
def __call__(self, path: str):
def __call__(self, path: str) -> bool:
if isinstance(path, str):
for suffix in self.suffixes:
if path.endswith(suffix):