mypy: Move remaining exclusion list to config file.

This leaves the wrapper script with very little left to do!

The main thing left is finding scripts by searching for shebang lines;
mypy itself would happily do the search for importable Python files.
This commit is contained in:
Greg Price 2018-05-15 15:13:55 -04:00
parent 4c500bba64
commit 6dbd90835b
2 changed files with 19 additions and 3 deletions

View File

@ -19,6 +19,25 @@ no_implicit_optional = True
# might ideally eliminate. # might ideally eliminate.
follow_imports = silent follow_imports = silent
#
#
# IGNORE ERRORS
#
#
# We suppress all errors in a handful of files, all of them config files.
[mypy-conf] # For docs/conf.py.
ignore_errors = True
[mypy-zproject.settings]
ignore_errors = True
[mypy-zproject.test_settings]
ignore_errors = True
# #
# #
# IGNORE MISSING IMPORTS # IGNORE MISSING IMPORTS

View File

@ -16,9 +16,6 @@ sys.path.append(os.path.dirname(TOOLS_DIR))
from lib.test_script import get_provisioning_status from lib.test_script import get_provisioning_status
exclude = """ exclude = """
docs/conf.py
zproject/settings.py
zproject/test_settings.py
""".split() """.split()
parser = argparse.ArgumentParser(description="Run mypy on files tracked by git.") parser = argparse.ArgumentParser(description="Run mypy on files tracked by git.")