Skip to content

fix(ruff): ruff 0.16.0 compatibility - #41

Merged
CybotTM merged 1 commit into
mainfrom
fix/ruff-016-compat
Jul 24, 2026
Merged

fix(ruff): ruff 0.16.0 compatibility#41
CybotTM merged 1 commit into
mainfrom
fix/ruff-016-compat

Conversation

@CybotTM

@CybotTM CybotTM commented Jul 24, 2026

Copy link
Copy Markdown
Member

Why

The reusable validate.yml Python-lint step now pins ruff 0.16.0 (netresearch/skill-repo-skill#184). Under that pin, ruff check . fails on scripts/detect_missing_tool.py with findings the previously-unpinned ruff did not flag.

Findings before (ruff@0.16.0 check .)

  • I001 scripts/detect_missing_tool.py:7 — import block un-sorted
  • BLE001 scripts/detect_missing_tool.py:43 — blind except Exception

(No EXE001/FURB105 present. format --check . was already clean.)

Fixes (behaviour-preserving)

  • I001: reordered imports to json, re, sys (ruff safe autofix).
  • BLE001: annotated the except Exception: on the stdin read with # noqa: BLE001 and a reason. The handler intentionally fails open (return) so the detection hook never breaks the calling tool — narrowing the catch could let an error escape that must stay swallowed. Behaviour unchanged.

Verify

  • uvx ruff@0.16.0 check . -> All checks passed!
  • uvx ruff@0.16.0 format --check . -> clean

Came from /retro follow-up on the reusable ruff pin (netresearch/skill-repo-skill#184).

The reusable validate.yml Python-lint step now pins ruff 0.16.0
(netresearch/skill-repo-skill#184), which surfaces findings the
previous unpinned ruff did not flag in scripts/detect_missing_tool.py:

- I001: import block un-sorted -> reordered (json/re/sys), safe autofix
- BLE001: blind `except Exception` on stdin read -> annotated with
  `# noqa: BLE001`; the handler intentionally fails open (returns) so
  the hook never breaks the calling tool. Behaviour unchanged.

No EXE001/FURB105 present in this repo.

Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
Copilot AI review requested due to automatic review settings July 24, 2026 13:47
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CybotTM
CybotTM merged commit b67746f into main Jul 24, 2026
17 of 18 checks passed
@CybotTM
CybotTM deleted the fix/ruff-016-compat branch July 24, 2026 14:08
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.

2 participants