tools: Migrate core run-mypy options to mypy.ini.

Add traceback option, as used in core Zulip run-mypy.
This commit is contained in:
neiljp (Neil Pilgrim) 2018-03-30 23:00:35 -07:00 committed by showell
parent dad7eddcc6
commit 6cbe1f5ba7
2 changed files with 10 additions and 5 deletions

View file

@ -149,11 +149,7 @@ for file_path in python_files:
mypy_command = "mypy"
extra_args = ["--check-untyped-defs",
"--follow-imports=silent",
"--scripts-are-modules",
"--disallow-any-generics",
"-i"]
extra_args = ["--follow-imports=silent"]
if args.disallow_untyped_defs:
extra_args.append("--disallow-untyped-defs")
if args.warn_unused_ignores: