mirror of https://github.com/zulip/zulip.git
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:
parent
4c500bba64
commit
6dbd90835b
19
mypy.ini
19
mypy.ini
|
@ -19,6 +19,25 @@ no_implicit_optional = True
|
|||
# might ideally eliminate.
|
||||
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
|
||||
|
|
|
@ -16,9 +16,6 @@ sys.path.append(os.path.dirname(TOOLS_DIR))
|
|||
from lib.test_script import get_provisioning_status
|
||||
|
||||
exclude = """
|
||||
docs/conf.py
|
||||
zproject/settings.py
|
||||
zproject/test_settings.py
|
||||
""".split()
|
||||
|
||||
parser = argparse.ArgumentParser(description="Run mypy on files tracked by git.")
|
||||
|
|
Loading…
Reference in New Issue