We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da8d614 commit cc70773Copy full SHA for cc70773
tools/run_py_linters.py
@@ -44,16 +44,16 @@
44
mypy_cache_dir = build_dir / '.mypy_cache'
45
46
47
-def run_mypy(path: Path) -> None:
48
- print(f"Running mypy on {path}")
+def run_mypy() -> None:
+ print('Running mypy on all modules')
49
run(
50
args=(
51
'mypy', '--strict',
52
'--cache-dir', mypy_cache_dir,
53
'--python-version', '3.8',
54
'--namespace-packages',
55
- '--ignore-missing-imports',
56
- path,
+ '--explicit-package-bases',
+ *all_python_modules,
57
),
58
check=True,
59
env={'MYPYPATH': str(src_dir.absolute()), **environ},
@@ -69,8 +69,7 @@ def linter_main() -> None:
69
70
)
71
72
- for x in all_python_modules:
73
- run_mypy(x)
+ run_mypy()
74
75
76
def get_all_python_files() -> List[Path]:
0 commit comments