From adafea73cc9f5eafab74cb54b1493ed5215f7c68 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 8 Jun 2018 16:19:20 +0200 Subject: [PATCH] Ignore missing imports We don't want to be type checking inside those files. Contributes to issue CURA-5330. --- run_mypy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_mypy.py b/run_mypy.py index a72c555b8a..2a2c72dbbe 100644 --- a/run_mypy.py +++ b/run_mypy.py @@ -44,7 +44,7 @@ def main(): for mod in mods: print("------------- Checking module {mod}".format(**locals())) - result = subprocess.run([sys.executable, mypyModule, "-p", mod]) + result = subprocess.run([sys.executable, mypyModule, "-p", mod, "--ignore-missing-imports"]) if result.returncode != 0: print("\nModule {mod} failed checking. :(".format(**locals())) return 1