mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Disable strict type checks for tests (#49851)
This commit is contained in:
parent
6f36fcc427
commit
02764c2f46
@ -359,6 +359,12 @@ def generate_and_validate(config: Config) -> str:
|
|||||||
for key in STRICT_SETTINGS:
|
for key in STRICT_SETTINGS:
|
||||||
mypy_config.set(strict_section, key, "true")
|
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)
|
ignored_section = "mypy-" + ",".join(IGNORED_MODULES)
|
||||||
mypy_config.add_section(ignored_section)
|
mypy_config.add_section(ignored_section)
|
||||||
mypy_config.set(ignored_section, "ignore_errors", "true")
|
mypy_config.set(ignored_section, "ignore_errors", "true")
|
||||||
|
1
tests/components/device_automation/__init__.py
Normal file
1
tests/components/device_automation/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""device_automation tests."""
|
1
tests/components/generic_thermostat/__init__.py
Normal file
1
tests/components/generic_thermostat/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""generic_thermostat tests."""
|
1
tests/components/hive/__init__.py
Normal file
1
tests/components/hive/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Tests for hive."""
|
@ -0,0 +1 @@
|
|||||||
|
"""Tests for specific devices."""
|
1
tests/components/maxcube/__init__.py
Normal file
1
tests/components/maxcube/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""maxcube tests."""
|
1
tests/mock/__init__.py
Normal file
1
tests/mock/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Mock helpers."""
|
Loading…
x
Reference in New Issue
Block a user