diff --git a/mypy.ini b/mypy.ini index 800e6ff5fc..f069fd28bc 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2,6 +2,7 @@ # Logistics of what code to check and how to handle the data. scripts_are_modules = True show_traceback = True +mypy_path = stubs/ cache_dir = var/mypy-cache # Options to make the checking stricter. diff --git a/tools/run-mypy b/tools/run-mypy index 2e9445fcb3..ccf707cfe0 100755 --- a/tools/run-mypy +++ b/tools/run-mypy @@ -16,6 +16,7 @@ sys.path.append(os.path.dirname(TOOLS_DIR)) from lib.test_script import get_provisioning_status exclude = """ +stubs/ """.split() parser = argparse.ArgumentParser(description="Run mypy on files tracked by git.")