From 3c0cca42e361ac67d7c0612d9f1c0ef9a9cea98e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 10:20:53 +0000 Subject: [PATCH 1/3] Bump ruff from 0.8.6 to 0.9.1 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.8.6 to 0.9.1. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.8.6...0.9.1) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 50c759ff..040b0480 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,7 +54,7 @@ test = [ "pytest-asyncio==0.25.2", "pytest-aiohttp==1.0.5", "pytest-cov==6.0.0", - "ruff==0.8.6", + "ruff==0.9.1", "tomli==2.2.1", ] From d89d29ea138c78282a292a0b5bcfab1641aff055 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 13 Jan 2025 12:59:29 +0100 Subject: [PATCH 2/3] Follow remap of TCH002 to TC002 --- tests/ruff.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ruff.toml b/tests/ruff.toml index 83ab9fd7..ea51db73 100644 --- a/tests/ruff.toml +++ b/tests/ruff.toml @@ -8,6 +8,6 @@ lint.extend-select = [ lint.extend-ignore = [ "S101", # Use of assert detected. As these are tests... "SLF001", # Tests will access private/protected members... - "TCH002", # pytest doesn't like this one... + "TC002", # pytest doesn't like this one... "PT012", # annoying with tests ] From 0d027b36cefe60df6545d44bf020685cef0b6e3a Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 13 Jan 2025 13:12:42 +0100 Subject: [PATCH 3/3] Run ruff format --- matter_server/common/helpers/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matter_server/common/helpers/util.py b/matter_server/common/helpers/util.py index f7b15234..0f70de7f 100644 --- a/matter_server/common/helpers/util.py +++ b/matter_server/common/helpers/util.py @@ -283,7 +283,7 @@ def dataclass_from_dict( extra_keys = dict_obj.keys() - {f.name for f in dc_fields} if extra_keys: raise KeyError( - f'Extra key(s) {",".join(extra_keys)} not allowed for {str(cls)}' + f"Extra key(s) {','.join(extra_keys)} not allowed for {str(cls)}" ) type_hints = cached_type_hints(cls) return cls(