mirror of https://github.com/zulip/zulip.git
mypy: List all options that would be enabled by mypy --strict.
This removes strict_optional = True and warn_no_return = True (which are already the default), and adds disallow_incomplete_defs = True and warn_unused_configs = True, as well as several options that need to remain False for now. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
2b9f2cc8ff
commit
51c1feb165
18
mypy.ini
18
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
|
||||
|
|
Loading…
Reference in New Issue