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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import pytest
|
||||
|
||||
from hypothesis import given
|
||||
from hypothesis.strategies import ip_addresses
|
||||
import pytest
|
||||
|
||||
from esphome import helpers
|
||||
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user