Skip to content

Commit

Permalink
Update pylint to 3.3.0 (home-assistant#126330)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Sep 20, 2024
1 parent 803de40 commit c408fd0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/components/bsblan/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions tests/components/ibeacon/test_device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
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,
Expand Down
4 changes: 1 addition & 3 deletions tests/components/ibeacon/test_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

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 (
Expand Down
4 changes: 2 additions & 2 deletions tests/components/sensoterra/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


@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",
Expand All @@ -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(
Expand Down

0 comments on commit c408fd0

Please sign in to comment.