run-mypy: Use the experimental new mypy cache.

This makes iteratively running mypy approximately 5x faster.

Fixes #1981.
This commit is contained in:
Tim Abbott 2016-10-15 22:57:07 -07:00
parent 9e503f2dcf
commit 217212b773
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ if six.PY2 and os.path.exists(MYPY_VENV_PATH):
else: else:
mypy_command = "mypy" mypy_command = "mypy"
extra_args = ["--fast-parser", "--silent-imports", "--check-untyped-defs", "--scripts-are-modules"] extra_args = ["--fast-parser", "--silent-imports", "--check-untyped-defs", "--scripts-are-modules", "-i", "--cache-dir=var/mypy-cache"]
if py_version == 2: if py_version == 2:
extra_args.append("--py2") extra_args.append("--py2")
if args.linecoverage_report: if args.linecoverage_report: