Skip to content

fix(ci): parenthesize implicit string concatenations flagged by ruff ISC004 - #196

Open
FenjuFu wants to merge 1 commit into
NawfalMotii79:developfrom
FenjuFu:fix/ci-ruff-isc004
Open

FenjuFu wants to merge 1 commit into
NawfalMotii79:developfrom
FenjuFu:fix/ci-ruff-isc004

Conversation

@FenjuFu

@FenjuFu FenjuFu commented Sep 29, 2026

Copy link
Copy Markdown

Closes #194

What

Parenthesize the four implicit multi-line f-string concatenations that ruff >= 0.16 reports as ISC004:

  • 9_Firmware/9_3_GUI/v7/dashboard.py (status readback lines, x2)
  • 9_Firmware/9_2_FPGA/tb/cosim/compare_doppler.py (check labels, x2)

Why

CI installs ruff unpinned (ruff>=0.5, no lock), so it now gets 0.16.x. These four hits turn the Python Lint + Tests job red for every PR against develop (see #185 / #184 / #183).

Behaviour

None. The concatenated strings are identical; the parentheses just make the concatenation explicit.

Verification

  • uv run --with ruff==0.16.3 ruff check . (the version CI resolves): All checks passed! (before: 4 × ISC004)
  • py_compile of both files OK
  • git diff --check clean

The python-tests job installs ruff unpinned (ruff>=0.5, no uv.lock),
so it now resolves to ruff 0.16.x, which enables ISC004
(unparenthesized implicit string concatenation inside a collection)
under the already-selected ISC group. The four existing hits in
v7/dashboard.py and tb/cosim/compare_doppler.py fail "uv run ruff
check ." and turn the Python Lint + Tests job red for every PR against
develop.

Wrap each multi-line f-string concatenation in parentheses. The
resulting strings are byte-for-byte identical; this only makes the
concatenation explicit.

Signed-off-by: FenjuFu <fufenjupku@gmail.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant