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( 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", ] 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 ]