1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

Bump ruff from 0.9.2 to 0.11.0 (#8409)

This commit is contained in:
dependabot[bot]
2025-03-20 09:51:23 -10:00
committed by GitHub
parent 6ea89644e7
commit 4adda632bb
651 changed files with 1962 additions and 2270 deletions

View File

@@ -1,18 +1,18 @@
"""Fixtures for component tests."""
import sys
from pathlib import Path
import sys
# Add package root to python path
here = Path(__file__).parent
package_root = here.parent.parent
sys.path.insert(0, package_root.as_posix())
import pytest
import pytest # noqa: E402
from esphome.core import CORE
from esphome.config import read_config
from esphome.__main__ import generate_cpp_contents
from esphome.__main__ import generate_cpp_contents # noqa: E402
from esphome.config import read_config # noqa: E402
from esphome.core import CORE # noqa: E402
@pytest.fixture

View File

@@ -9,11 +9,10 @@ not be part of a unit test suite.
"""
import sys
import pytest
from pathlib import Path
import sys
import pytest
here = Path(__file__).parent

View File

@@ -1,8 +1,8 @@
import pytest
from unittest.mock import Mock
from esphome import cpp_helpers as ch
from esphome import const
import pytest
from esphome import const, cpp_helpers as ch
@pytest.mark.asyncio

View File

@@ -1,7 +1,6 @@
import pytest
from hypothesis import given
from hypothesis.strategies import ip_addresses
import pytest
from esphome import helpers

View File

@@ -1,16 +1,17 @@
"""Tests for the wizard.py file."""
import os
import esphome.wizard as wz
import pytest
from esphome.core import CORE
from esphome.components.esp8266.boards import ESP8266_BOARD_PINS
from esphome.components.esp32.boards import ESP32_BOARD_PINS
from esphome.components.bk72xx.boards import BK72XX_BOARD_PINS
from esphome.components.rtl87xx.boards import RTL87XX_BOARD_PINS
from unittest.mock import MagicMock
import pytest
from esphome.components.bk72xx.boards import BK72XX_BOARD_PINS
from esphome.components.esp32.boards import ESP32_BOARD_PINS
from esphome.components.esp8266.boards import ESP8266_BOARD_PINS
from esphome.components.rtl87xx.boards import RTL87XX_BOARD_PINS
from esphome.core import CORE
import esphome.wizard as wz
@pytest.fixture
def default_config():