Update ruff to 0.12.0 (#147106)

This commit is contained in:
Marc Mueller
2025-06-19 20:39:09 +02:00
committed by GitHub
parent 73d0d87705
commit 2c13c70e12
96 changed files with 291 additions and 427 deletions

View File

@@ -39,8 +39,9 @@ async def test_get_integration_logger(
@pytest.mark.usefixtures("enable_custom_integrations", "hass")
async def test_extract_frame_resolve_module() -> None:
"""Test extracting the current frame from integration context."""
# pylint: disable-next=import-outside-toplevel
from custom_components.test_integration_frame import call_get_integration_frame
from custom_components.test_integration_frame import ( # noqa: PLC0415
call_get_integration_frame,
)
integration_frame = call_get_integration_frame()
@@ -56,8 +57,9 @@ async def test_extract_frame_resolve_module() -> None:
@pytest.mark.usefixtures("enable_custom_integrations", "hass")
async def test_get_integration_logger_resolve_module() -> None:
"""Test getting the logger from integration context."""
# pylint: disable-next=import-outside-toplevel
from custom_components.test_integration_frame import call_get_integration_logger
from custom_components.test_integration_frame import ( # noqa: PLC0415
call_get_integration_logger,
)
logger = call_get_integration_logger(__name__)