Skip to content

Clear the Ruff findings super-linter 9.0.0 reports - #185

Merged
mattmenefee merged 2 commits into
mainfrom
teams-copy-ruff-pairwise
Oct 24, 2026
Merged

mattmenefee merged 2 commits into
mainfrom
teams-copy-ruff-pairwise

Conversation

@mattmenefee

@mattmenefee mattmenefee commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Test plan

  • bash test/test-teams-copy.sh: 30 cases passed, on Homebrew Python 3.15.0
  • bash home/.claude/skills/reflow/scripts/test-unfilled-blocks.sh: 38 cases passed
  • The f-string fence pattern equals the % form (checked in Python for a three-character fence)
  • lint passes on this pull request (super-linter 8.7.0; run 40133478046 on 4497da7)
  • Bump super-linter/super-linter from 8.7.0 to 9.0.0 in the github-actions group #184 rebased onto this branch passes lint with super-linter 9.0.0, PYTHON_RUFF included (run 40132458694 on 81bbba4)

The Ruff in the super-linter 9.0.0 image, which the "Lint teams-copy
with Ruff" CI step runs once PR #184's bump lands, reports RUF007 on
join_with_spacers: it walks successive blocks with
zip(blocks, blocks[1:]). The step fails on that finding before
super-linter's own step is reached.

itertools.pairwise yields the same pairs without building the sliced
copy. It needs Python 3.10, and teams-copy runs on Homebrew's python3.
@mattmenefee mattmenefee self-assigned this Oct 24, 2026
super-linter 9.0.0, which PR #184 bumps to, runs Ruff 0.16.8 across
the codebase, and its PYTHON_RUFF check reports three findings in
unfilled-blocks.py: a closing-fence pattern built with % formatting
(UP031), two endswith calls on one string (PIE810) and successive
block lines walked with zip(block, block[1:]) (RUF007).

The fence pattern is now an f-string, the endswith calls take one
tuple and the walk uses itertools.pairwise, which needs Python 3.10.
Each produces the same result, and the detector's test cases still
pass.
@mattmenefee mattmenefee changed the title Iterate teams-copy's block pairs with itertools.pairwise Clear the Ruff findings super-linter 9.0.0 reports Oct 24, 2026
@mattmenefee mattmenefee removed the wip label Oct 24, 2026
@mattmenefee
mattmenefee marked this pull request as ready for review October 24, 2026 21:16
@mattmenefee
mattmenefee merged commit 3ffec6b into main Oct 24, 2026
11 checks passed
@mattmenefee
mattmenefee deleted the teams-copy-ruff-pairwise branch October 24, 2026 21:18
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