Update pylint to 3.3.0 (#126330)
parent
803de40321
commit
c408fd0e62
|
@ -172,6 +172,7 @@ disable = [
|
|||
"too-many-locals",
|
||||
"too-many-public-methods",
|
||||
"too-many-boolean-expressions",
|
||||
"too-many-positional-arguments",
|
||||
"wrong-import-order",
|
||||
"consider-using-namedtuple-or-dataclass",
|
||||
"consider-using-assignment-expr",
|
||||
|
|
|
@ -7,14 +7,14 @@
|
|||
|
||||
-c homeassistant/package_constraints.txt
|
||||
-r requirements_test_pre_commit.txt
|
||||
astroid==3.2.4
|
||||
astroid==3.3.3
|
||||
coverage==7.6.0
|
||||
freezegun==1.5.1
|
||||
mock-open==1.4.0
|
||||
mypy-dev==1.12.0a3
|
||||
pre-commit==3.7.1
|
||||
pydantic==1.10.17
|
||||
pylint==3.2.6
|
||||
pylint==3.3.0
|
||||
pylint-per-file-ignores==1.3.2
|
||||
pipdeptree==2.23.1
|
||||
pip-licenses==4.5.1
|
||||
|
|
|
@ -40,7 +40,7 @@ def mock_setup_entry() -> Generator[AsyncMock]:
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_bsblan() -> Generator[MagicMock, None, None]:
|
||||
def mock_bsblan() -> Generator[MagicMock]:
|
||||
"""Return a mocked BSBLAN client."""
|
||||
with (
|
||||
patch("homeassistant.components.bsblan.BSBLAN", autospec=True) as bsblan_mock,
|
||||
|
|
|
@ -11,9 +11,7 @@ from homeassistant.components.bluetooth import (
|
|||
async_ble_device_from_address,
|
||||
async_last_service_info,
|
||||
)
|
||||
from homeassistant.components.bluetooth.const import ( # pylint: disable=hass-component-root-import
|
||||
UNAVAILABLE_TRACK_SECONDS,
|
||||
)
|
||||
from homeassistant.components.bluetooth.const import UNAVAILABLE_TRACK_SECONDS
|
||||
from homeassistant.components.ibeacon.const import (
|
||||
DOMAIN,
|
||||
UNAVAILABLE_TIMEOUT,
|
||||
|
|
|
@ -4,9 +4,7 @@ from datetime import timedelta
|
|||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.bluetooth.const import ( # pylint: disable=hass-component-root-import
|
||||
UNAVAILABLE_TRACK_SECONDS,
|
||||
)
|
||||
from homeassistant.components.bluetooth.const import UNAVAILABLE_TRACK_SECONDS
|
||||
from homeassistant.components.ibeacon.const import DOMAIN, UPDATE_INTERVAL
|
||||
from homeassistant.components.sensor import ATTR_STATE_CLASS
|
||||
from homeassistant.const import (
|
||||
|
|
|
@ -9,7 +9,7 @@ from .const import API_TOKEN
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_setup_entry() -> Generator[AsyncMock, None, None]:
|
||||
def mock_setup_entry() -> Generator[AsyncMock]:
|
||||
"""Override async_setup_entry."""
|
||||
with patch(
|
||||
"homeassistant.components.sensoterra.async_setup_entry",
|
||||
|
@ -19,7 +19,7 @@ def mock_setup_entry() -> Generator[AsyncMock, None, None]:
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
def mock_customer_api_client() -> Generator[AsyncMock, None, None]:
|
||||
def mock_customer_api_client() -> Generator[AsyncMock]:
|
||||
"""Override async_setup_entry."""
|
||||
with (
|
||||
patch(
|
||||
|
|
Loading…
Reference in New Issue