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.iniindex 10919fef722..8f2469ceb6a 100644--- a/mypy.ini+++ b/mypy.ini@@ -7,15 +7,23 @@ show_traceback = Truemypy_path = $MYPY_CONFIG_FILE_DIR/stubscache_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 = Truedisallow_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 = Falseno_implicit_optional = Truewarn_redundant_casts = Truewarn_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