Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

mypy: List all options that would be enabled by mypy --strict.

Anders Kaseorg51c1feb165a2
diff --git a/mypy.ini b/mypy.ini
index 10919fef722..8f2469ceb6a 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -7,15 +7,23 @@ show_traceback = True
mypy_path = $MYPY_CONFIG_FILE_DIR/stubs
cache_dir = $MYPY_CONFIG_FILE_DIR/var/mypy-cache
-# Options to make the checking stricter.
-check_untyped_defs = True
-disallow_untyped_defs = True
+# These are all the options that would be enabled by mypy --strict, in
+# the order listed by the mypy --help documentation of --strict. We
+# do not yet enable all of them.
+warn_unused_configs = True
disallow_any_generics = True
-warn_no_return = True
-strict_optional = True
+disallow_subclassing_any = False
+disallow_untyped_calls = False
+disallow_untyped_defs = True
+disallow_incomplete_defs = True
+check_untyped_defs = True
+disallow_untyped_decorators = False
no_implicit_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
+warn_return_any = False
+no_implicit_reexport = False
+strict_equality = False
# Display the codes needed for # type: ignore[code] annotations.
show_error_codes = True