home-assistant-core/mypy.ini
Ville Skyttä fc5b1c7005 Mypy config improvements (#25340)
* Specify python version

So that it type checks against the lowest common denominator version,
not the runtime one.

* Disallow incomplete definitions
2019-07-20 14:35:59 -07:00

31 lines
687 B
INI

[mypy]
python_version = 3.5
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
follow_imports = silent
ignore_missing_imports = true
no_implicit_optional = true
strict_equality = true
warn_incomplete_stub = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
warn_unused_ignores = true
[mypy-homeassistant.*]
disallow_untyped_defs = true
[mypy-homeassistant.config_entries]
disallow_untyped_defs = false
[mypy-homeassistant.util.yaml.dumper]
warn_return_any = false
disallow_untyped_calls = false
[mypy-homeassistant.util.yaml.loader]
warn_return_any = false
disallow_untyped_calls = false