From 21c3c2cad7b6fb045436d4bd401792ce2bcc218b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 16:57:24 +0000 Subject: [PATCH 1/2] :arrow_up: auto update by pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.15.9 → v0.15.12](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.9...v0.15.12) - [github.com/python-poetry/poetry: 2.3.2 → 2.4.0](https://github.com/python-poetry/poetry/compare/2.3.2...2.4.0) - [github.com/astral-sh/uv-pre-commit: 0.11.6 → 0.11.8](https://github.com/astral-sh/uv-pre-commit/compare/0.11.6...0.11.8) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a624748..9d5d271 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: autoupdate_commit_msg: ":arrow_up: auto update by pre-commit hooks" repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.9 + rev: v0.15.12 hooks: - id: ruff-check args: [--fix] @@ -42,12 +42,12 @@ repos: - id: no-commit-to-branch - repo: https://github.com/python-poetry/poetry - rev: 2.3.2 + rev: 2.4.0 hooks: - id: poetry-check - id: poetry-install - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.11.6 + rev: 0.11.8 hooks: - id: uv-lock From 65c3b289cbe16d00df8bf4d9a83bbaa2d04ac0ea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 May 2026 16:57:59 +0000 Subject: [PATCH 2/2] :rotating_light: auto fix by pre-commit hooks --- tests/framelib/test_frame_gen_v2.py | 78 ++++++++++++++++++----------- 1 file changed, 48 insertions(+), 30 deletions(-) diff --git a/tests/framelib/test_frame_gen_v2.py b/tests/framelib/test_frame_gen_v2.py index 85bc6b4..7246517 100644 --- a/tests/framelib/test_frame_gen_v2.py +++ b/tests/framelib/test_frame_gen_v2.py @@ -605,36 +605,54 @@ def test_gen_pkg_half_neu_fields(self): ) == half_attrs["weight_address_end"] ) - assert bit_field( - pkg_half_neu[1], - Off_Cfg3_V2.Full.Word2.ADDR_CORE_Y_OFFSET, - Off_Cfg3_V2.Full.Word2.ADDR_CORE_Y_MASK, - ) == addr_core_y - assert bit_field( - pkg_half_neu[1], - Off_Cfg3_V2.Full.Word2.ADDR_CORE_XY_OFFSET, - Off_Cfg3_V2.Full.Word2.ADDR_CORE_XY_MASK, - ) == addr_core_xy - assert bit_field( - pkg_half_neu[1], - Off_Cfg3_V2.Full.Word2.ADDR_CORE_X_OFFSET, - Off_Cfg3_V2.Full.Word2.ADDR_CORE_X_MASK, - ) == addr_core_x - assert bit_field( - pkg_half_neu[1], - Off_Cfg3_V2.Full.Word2.ADDR_COPY_XY_OFFSET, - Off_Cfg3_V2.Full.Word2.ADDR_COPY_XY_MASK, - ) == addr_copy_xy - assert bit_field( - pkg_half_neu[1], - Off_Cfg3_V2.Full.Word2.ADDR_COPY_X_OFFSET, - Off_Cfg3_V2.Full.Word2.ADDR_COPY_X_MASK, - ) == addr_copy_x - assert bit_field( - pkg_half_neu[1], - Off_Cfg3_V2.Full.Word2.ADDR_COPY_Y_OFFSET, - Off_Cfg3_V2.Full.Word2.ADDR_COPY_Y_MASK, - ) == addr_copy_y + assert ( + bit_field( + pkg_half_neu[1], + Off_Cfg3_V2.Full.Word2.ADDR_CORE_Y_OFFSET, + Off_Cfg3_V2.Full.Word2.ADDR_CORE_Y_MASK, + ) + == addr_core_y + ) + assert ( + bit_field( + pkg_half_neu[1], + Off_Cfg3_V2.Full.Word2.ADDR_CORE_XY_OFFSET, + Off_Cfg3_V2.Full.Word2.ADDR_CORE_XY_MASK, + ) + == addr_core_xy + ) + assert ( + bit_field( + pkg_half_neu[1], + Off_Cfg3_V2.Full.Word2.ADDR_CORE_X_OFFSET, + Off_Cfg3_V2.Full.Word2.ADDR_CORE_X_MASK, + ) + == addr_core_x + ) + assert ( + bit_field( + pkg_half_neu[1], + Off_Cfg3_V2.Full.Word2.ADDR_COPY_XY_OFFSET, + Off_Cfg3_V2.Full.Word2.ADDR_COPY_XY_MASK, + ) + == addr_copy_xy + ) + assert ( + bit_field( + pkg_half_neu[1], + Off_Cfg3_V2.Full.Word2.ADDR_COPY_X_OFFSET, + Off_Cfg3_V2.Full.Word2.ADDR_COPY_X_MASK, + ) + == addr_copy_x + ) + assert ( + bit_field( + pkg_half_neu[1], + Off_Cfg3_V2.Full.Word2.ADDR_COPY_Y_OFFSET, + Off_Cfg3_V2.Full.Word2.ADDR_COPY_Y_MASK, + ) + == addr_copy_y + ) def test_gen_pkg_full_neu_fields(self): dest_info = build_v2_dest_info_params(