mirror of https://github.com/zulip/zulip.git
mypy: Add a place to put type stubs.
This will allow us to begin to add our own stubs for external libraries. Writing stubs can be surprisingly little work to do, and can have high leverage in keeping our type annotations high-quality.
This commit is contained in:
parent
d1cda29fb4
commit
36cf898589
1
mypy.ini
1
mypy.ini
|
@ -2,6 +2,7 @@
|
||||||
# Logistics of what code to check and how to handle the data.
|
# Logistics of what code to check and how to handle the data.
|
||||||
scripts_are_modules = True
|
scripts_are_modules = True
|
||||||
show_traceback = True
|
show_traceback = True
|
||||||
|
mypy_path = stubs/
|
||||||
cache_dir = var/mypy-cache
|
cache_dir = var/mypy-cache
|
||||||
|
|
||||||
# Options to make the checking stricter.
|
# Options to make the checking stricter.
|
||||||
|
|
|
@ -16,6 +16,7 @@ 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 = """
|
||||||
|
stubs/
|
||||||
""".split()
|
""".split()
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description="Run mypy on files tracked by git.")
|
parser = argparse.ArgumentParser(description="Run mypy on files tracked by git.")
|
||||||
|
|
Loading…
Reference in New Issue