Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
mypy: Use ‘strict’ option to enable (almost) all strictness flags.
Anders Kaseorg944c036df1d2
diff --git a/pyproject.toml b/pyproject.tomlindex 3e50e937faa..e3b92d0dc16 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -17,23 +17,12 @@ show_traceback = truemypy_path = "$MYPY_CONFIG_FILE_DIR/stubs"cache_dir = "$MYPY_CONFIG_FILE_DIR/var/mypy-cache"-# 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+# Enable strict mode, with some exceptions.+strict = truedisallow_subclassing_any = falsedisallow_untyped_calls = false-disallow_untyped_defs = true-disallow_incomplete_defs = true-check_untyped_defs = truedisallow_untyped_decorators = false-no_implicit_optional = true-warn_redundant_casts = true-warn_unused_ignores = truewarn_return_any = false-no_implicit_reexport = true-strict_equality = true# Display the codes needed for # type: ignore[code] annotations.show_error_codes = true