Enable pydantic mypy plugin (#87415)
This commit is contained in:
7
mypy.ini
7
mypy.ini
@@ -4,6 +4,7 @@
|
||||
|
||||
[mypy]
|
||||
python_version = 3.10
|
||||
plugins = pydantic.mypy
|
||||
show_error_codes = true
|
||||
follow_imports = silent
|
||||
ignore_missing_imports = true
|
||||
@@ -26,6 +27,12 @@ disallow_untyped_defs = true
|
||||
warn_return_any = true
|
||||
warn_unreachable = true
|
||||
|
||||
[pydantic-mypy]
|
||||
init_forbid_extra = true
|
||||
init_typed = true
|
||||
warn_required_dynamic_aliases = true
|
||||
warn_untyped_fields = true
|
||||
|
||||
[mypy-homeassistant.*]
|
||||
no_implicit_reexport = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user