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