mypy: Move follow-imports to config file.

It's cleaner to have this configuration in a nice declarative
config file than embedded in a script.
This commit is contained in:
Greg Price 2018-05-06 14:10:18 -07:00
parent ff178bb27a
commit 724e849e2b
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,9 @@
[mypy]
check_untyped_defs = True
disallow_any_generics = True
follow_imports = silent
strict_optional = True
# This is a more explicit supporting form of strict-optional:
no_implicit_optional = True

View File

@ -83,8 +83,7 @@ if not python_files and not pyi_files:
print("There are no files to run mypy on.")
sys.exit(0)
extra_args = ["--follow-imports=silent",
"--cache-dir=var/mypy-cache"]
extra_args = ["--cache-dir=var/mypy-cache"]
if args.linecoverage_report:
extra_args.append("--linecoverage-report")
extra_args.append("var/linecoverage-report")