mirror of https://github.com/zulip/zulip.git
run-mypy: Use the experimental new mypy cache.
This makes iteratively running mypy approximately 5x faster. Fixes #1981.
This commit is contained in:
parent
9e503f2dcf
commit
217212b773
|
@ -115,7 +115,7 @@ if six.PY2 and os.path.exists(MYPY_VENV_PATH):
|
|||
else:
|
||||
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:
|
||||
extra_args.append("--py2")
|
||||
if args.linecoverage_report:
|
||||
|
|
Loading…
Reference in New Issue