diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index ab2404aed..c75ef3766 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -133,7 +133,7 @@ jobs: - commitcheck strategy: matrix: - python-version: ["3.14", "3.13"] + python-version: ["3.14"] steps: - name: Check out committed code uses: actions/checkout@v6 diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d7f9cac0..44f3dc337 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Ongoing updates + +- PR [405](https://github.com/plugwise/python-plugwise-usb/pull/405): Fix recent Ruff errors + ## v0.47.2 - 2026-01-29 - PR [400](https://github.com/plugwise/python-plugwise-usb/pull/400): Fix for Issue [#399](https://github.com/plugwise/python-plugwise-usb/issues/399) diff --git a/plugwise_usb/api.py b/plugwise_usb/api.py index 46ae63af0..ad5d60831 100644 --- a/plugwise_usb/api.py +++ b/plugwise_usb/api.py @@ -2,7 +2,7 @@ from dataclasses import dataclass from datetime import datetime -from enum import Enum, IntEnum, auto +from enum import Enum, IntEnum, StrEnum, auto import logging from typing import Any, Protocol @@ -36,7 +36,7 @@ class NodeEvent(Enum): JOIN = auto() -class NodeFeature(str, Enum): +class NodeFeature(StrEnum): """USB Stick Node feature.""" AVAILABLE = "available" diff --git a/tests/test_usb.py b/tests/test_usb.py index b8a6e94fc..5350745da 100644 --- a/tests/test_usb.py +++ b/tests/test_usb.py @@ -270,7 +270,7 @@ async def send( aiofiles.threadpool.wrap.register(MagicMock)( - lambda *args, **kwargs: aiofiles.threadpool.AsyncBufferedIOBase(*args, **kwargs) # pylint: disable=unnecessary-lambda + lambda *args, **kwargs: aiofiles.threadpool.AsyncBufferedIOBase(*args, **kwargs) # noqa: PLW0108 pylint: disable=unnecessary-lambda )