diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eaba65b0..0e8698f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: pass_filenames: false args: ["python"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.13 + rev: v0.15.14 hooks: # Run the linter. - id: ruff-check diff --git a/python/tests/test_value_converter.py b/python/tests/test_value_converter.py index fdb44bf0..745c544a 100644 --- a/python/tests/test_value_converter.py +++ b/python/tests/test_value_converter.py @@ -659,9 +659,9 @@ async def test_char_internal_type_byte_spectrum( value = decoded[i] assert isinstance(value, str) assert len(value) == 1 - assert ( - ord(value) == b - ), f"byte 0x{b:02x} round-tripped to ord(value)=0x{ord(value):02x}" + assert ord(value) == b, ( + f"byte 0x{b:02x} round-tripped to ord(value)=0x{ord(value):02x}" + ) assert decoded[len(bytes_under_test)] is None