You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
filter_ruff_format matches pre-0.12 ruff wording, so rtk ruff format --check compresses nothing #3930
if lower.contains("would reformat:"){ … }if lower.contains("left unchanged"){ … }
ruff stopped emitting both in check mode. On ruff 0.16.6 format --check prints unformatted: File would be reformatted per file and N files already formatted as the summary, so neither branch fires and the filter falls through to result.push_str(output.trim()) — an identity function over the full ANSI diagnostic block.
Against CONTRIBUTING.md's 20% floor, the format path currently delivers nothing. ruff format (write mode) still says 1 file left unchanged and is still summarised correctly, so only the --check path is dead.
Verified identical on develop (665b272) and on #3083's head — this predates that PR and is out of its scope.
Suggested direction
Match the current wording as well: unformatted: for the per-file lines and already formatted alongside left unchanged for the summary. Keeping both spellings covers old and new ruff. The existing test_filter_ruff_format_needs_formatting / test_filter_ruff_format_all_formatted fixtures use the pre-0.12 strings and pass, which is why the drift went unnoticed — new fixtures should be captured from a current ruff.
filter_ruff_format only matches pre-0.12 ruff wording, so rtk ruff format --check output on ruff 0.16+ passes through uncompressed; add matching for unformatted: and already formatted.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
src/filters/ruff.rs
Triaged automatically by wshm · This is an automated analysis, not a human review.
Taking this — will teach filter_ruff_format to recognize current ruff check wording (unformatted: / N files already formatted) while keeping the pre-0.12 spellings, plus fixtures from current ruff.
Activity
rtk-wshm-sync-bot commentedon Sep 8, 2026
🔍 Automated Triage
bugmediumSummary
filter_ruff_format only matches pre-0.12 ruff wording, so
rtk ruff format --checkoutput on ruff 0.16+ passes through uncompressed; add matching forunformatted:andalready formatted.📁 Relevant files
src/filters/ruff.rsTriaged automatically by wshm · This is an automated analysis, not a human review.
cestercian commentedon Sep 9, 2026
Taking this — will teach
filter_ruff_formatto recognize current ruff check wording (unformatted:/N files already formatted) while keeping the pre-0.12 spellings, plus fixtures from current ruff.fix(ruff): recognize current format --check wording
fix(ruff): recognize current format --check wording