Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps-dev): bump pylint from 3.2.7 to 3.3.1 #1112

Merged
merged 3 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ecowitt2mqtt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def get(self, passkey: str) -> Config:
"""
return self._configs.get(passkey, self.default_config)

def iterate(self) -> Generator[Config, None, None]:
def iterate(self) -> Generator[Config]:
"""Get a generator to loop through all stored Config objects.

Returns:
Expand Down
2 changes: 1 addition & 1 deletion ecowitt2mqtt/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self, ecowitt: Ecowitt) -> None:
self.ecowitt = ecowitt

@asynccontextmanager
async def lifespan(_: FastAPI) -> AsyncGenerator[None, None]:
async def lifespan(_: FastAPI) -> AsyncGenerator[None]:
"""Define a lifespan context manager."""
yield

Expand Down
18 changes: 9 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def config_fixture() -> dict[str, Any]:


@pytest.fixture(name="config_filepath")
def config_filepath_fixture(raw_config: str) -> Generator[str, None, None]:
def config_filepath_fixture(raw_config: str) -> Generator[str]:
"""Define a fixture to return a config filepath.

Args:
Expand Down Expand Up @@ -115,7 +115,7 @@ def raw_config_fixture() -> str:
@pytest_asyncio.fixture(name="setup_aiomqtt")
async def setup_aiomqtt_fixture(
mock_aiomqtt_client: MagicMock,
) -> AsyncGenerator[None, None]:
) -> AsyncGenerator[None]:
"""Define a fixture to patch asyncio-mqtt properly.

Args:
Expand All @@ -129,7 +129,7 @@ async def setup_aiomqtt_fixture(
@pytest_asyncio.fixture(name="setup_uvicorn_server")
async def setup_uvicorn_server_fixture(
ecowitt: Ecowitt,
) -> AsyncGenerator[None, None]:
) -> AsyncGenerator[None]:
"""Define a fixture to patch Uvicorn properly.

Args:
Expand Down
30 changes: 15 additions & 15 deletions tests/test_runtime.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Define tests for the runtime."""

# pylint: disable=line-too-long,too-many-arguments,unused-argument
# pylint: disable=line-too-long,too-many-arguments,too-many-positional-arguments,unused-argument
from __future__ import annotations

import asyncio
Expand Down Expand Up @@ -37,8 +37,8 @@ async def test_publish_failure(
caplog: Mock,
device_data: dict[str, Any],
ecowitt: Ecowitt,
setup_aiomqtt: AsyncGenerator[None, None],
setup_uvicorn_server: AsyncGenerator[None, None],
setup_aiomqtt: AsyncGenerator[None],
setup_uvicorn_server: AsyncGenerator[None],
) -> None:
"""Test a failed MQTT publish.

Expand Down Expand Up @@ -70,8 +70,8 @@ async def test_publish_ambient_weather_new_format_success(
device_data: dict[str, Any],
ecowitt: Ecowitt,
mock_aiomqtt_client: MagicMock,
setup_aiomqtt: AsyncGenerator[None, None],
setup_uvicorn_server: AsyncGenerator[None, None],
setup_aiomqtt: AsyncGenerator[None],
setup_uvicorn_server: AsyncGenerator[None],
) -> None:
"""Test a successful new-format Ambient Weather payload being received and published.

Expand Down Expand Up @@ -113,8 +113,8 @@ async def test_publish_ambient_weather_old_format_success(
device_data: dict[str, Any],
ecowitt: Ecowitt,
mock_aiomqtt_client: MagicMock,
setup_aiomqtt: AsyncGenerator[None, None],
setup_uvicorn_server: AsyncGenerator[None, None],
setup_aiomqtt: AsyncGenerator[None],
setup_uvicorn_server: AsyncGenerator[None],
) -> None:
"""Test a successful old-format Ambient Weather payload being received and published.

Expand Down Expand Up @@ -157,8 +157,8 @@ async def test_publish_ecowitt_success(
device_data: dict[str, Any],
ecowitt: Ecowitt,
mock_aiomqtt_client: MagicMock,
setup_aiomqtt: AsyncGenerator[None, None],
setup_uvicorn_server: AsyncGenerator[None, None],
setup_aiomqtt: AsyncGenerator[None],
setup_uvicorn_server: AsyncGenerator[None],
) -> None:
"""Test a successful Ecowitt payload being received and published.

Expand Down Expand Up @@ -208,8 +208,8 @@ async def test_publish_wunderground_disable_calculated_data(
device_data: dict[str, Any],
ecowitt: Ecowitt,
mock_aiomqtt_client: MagicMock,
setup_aiomqtt: AsyncGenerator[None, None],
setup_uvicorn_server: AsyncGenerator[None, None],
setup_aiomqtt: AsyncGenerator[None],
setup_uvicorn_server: AsyncGenerator[None],
) -> None:
"""Test a successful Weather Underground payload being received and published.

Expand Down Expand Up @@ -250,8 +250,8 @@ async def test_publish_wunderground_success(
device_data: dict[str, Any],
ecowitt: Ecowitt,
mock_aiomqtt_client: MagicMock,
setup_aiomqtt: AsyncGenerator[None, None],
setup_uvicorn_server: AsyncGenerator[None, None],
setup_aiomqtt: AsyncGenerator[None],
setup_uvicorn_server: AsyncGenerator[None],
) -> None:
"""Test a successful Weather Underground payload being received and published.

Expand Down Expand Up @@ -289,8 +289,8 @@ async def test_unknown_exception_shutdown(
caplog: Mock,
device_data: dict[str, Any],
ecowitt: Ecowitt,
setup_aiomqtt: AsyncGenerator[None, None],
setup_uvicorn_server: AsyncGenerator[None, None],
setup_aiomqtt: AsyncGenerator[None],
setup_uvicorn_server: AsyncGenerator[None],
) -> None:
"""Test that an unknown exception successfully shuts down the runtime.

Expand Down
Loading