Disable strict type checks for tests (#49851)
parent
6f36fcc427
commit
02764c2f46
|
@ -359,6 +359,12 @@ def generate_and_validate(config: Config) -> str:
|
|||
for key in STRICT_SETTINGS:
|
||||
mypy_config.set(strict_section, key, "true")
|
||||
|
||||
# Disable strict checks for tests
|
||||
tests_section = "mypy-tests.*"
|
||||
mypy_config.add_section(tests_section)
|
||||
for key in STRICT_SETTINGS:
|
||||
mypy_config.set(tests_section, key, "false")
|
||||
|
||||
ignored_section = "mypy-" + ",".join(IGNORED_MODULES)
|
||||
mypy_config.add_section(ignored_section)
|
||||
mypy_config.set(ignored_section, "ignore_errors", "true")
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
"""device_automation tests."""
|
|
@ -0,0 +1 @@
|
|||
"""generic_thermostat tests."""
|
|
@ -0,0 +1 @@
|
|||
"""Tests for hive."""
|
|
@ -0,0 +1 @@
|
|||
"""Tests for specific devices."""
|
|
@ -0,0 +1 @@
|
|||
"""maxcube tests."""
|
|
@ -0,0 +1 @@
|
|||
"""Mock helpers."""
|
Loading…
Reference in New Issue