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 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(