Make mypy config strict and work on pre-commit

This commit is contained in:
Ayaz Salikhov
2022-03-08 23:23:13 +03:00
parent cfcf11aefe
commit b487d1afbe
5 changed files with 33 additions and 9 deletions

View File

@@ -23,7 +23,7 @@ def get_test_dirs(
short_image_name: Optional[str],
) -> list[Path]:
if short_image_name is None:
return [] # type: ignore
return []
test_dirs = get_test_dirs(ALL_IMAGES[short_image_name])
if (current_image_tests_dir := THIS_DIR / short_image_name).exists():