Skip to content

chore: satisfy ruff 0.17 lint (RUF071) - #11

Merged
lauromota-21 merged 1 commit into
mainfrom
fix/lint-ruf071
Oct 16, 2026
Merged

lauromota-21 merged 1 commit into
mainfrom
fix/lint-ruf071

Conversation

@lauromota-21

Copy link
Copy Markdown
Collaborator

CI on main fails since the ruff 0.17 release: the new rule RUF071 flags os.path.commonprefix() in analysis._group_label.

The character-by-character prefix is intended there (run names, not paths), so this replaces the call with a small string helper that gives the same results (checked against os.path.commonprefix on 20,000 generated name lists). A # noqa: RUF071 would instead make older ruff versions, still allowed by ruff>=0.4, fail with RUF100 (unused noqa).

ruff check src tests passes on ruff 0.17.1 and 0.15.14.

CI installs the latest ruff, and 0.17 added RUF071, which flags
os.path.commonprefix() in analysis._group_label. The character-by-character
prefix is intended there (run names, not paths), so compute it with a small
string helper instead. Same results as before, and no noqa that older ruff
versions would report as unused (RUF100).
@lauromota-21
lauromota-21 merged commit 44830de into main Oct 16, 2026
4 checks passed
@lauromota-21
lauromota-21 deleted the fix/lint-ruf071 branch October 16, 2026 10:19
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