Skip to content

Commit

Permalink
mypy: Switch to follow_imports = error.
Browse files Browse the repository at this point in the history
The mypy daemon only supports error and skip. Choosing error
immediately surfaces when a file excluded from the build is
being imported, so that something can be done about it.
  • Loading branch information
msullivan authored and timabbott committed May 22, 2018
1 parent d5ee801 commit c4bd0e5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ local_partial_types = True
# someone fixes a type error we don't want to add a burden for them.
#warn_unused_ignores = True

# Options to make the checking *less* strict, which we
# might ideally eliminate.
follow_imports = silent

# Error on importing modules that are present but not part of the
# build. If the module can't reasonably be made to not error, errors
# can be suppressed with ignore_errors.
# (The mypy daemon only supports error and skip for follow_imports)
follow_imports = error

#
#
Expand Down

0 comments on commit c4bd0e5

Please sign in to comment.