Skip to content

fix: show ruff parse errors on format failure#1837

Open
jar-stripe wants to merge 1 commit into
masterfrom
jar/format-diagnostic
Open

fix: show ruff parse errors on format failure#1837
jar-stripe wants to merge 1 commit into
masterfrom
jar/format-diagnostic

Conversation

@jar-stripe

Copy link
Copy Markdown
Contributor

Why?

When just format or just format-check fails (e.g. ruff encounters a merge marker or syntax error), --quiet suppresses all output including the error diagnostic. This makes CI failures impossible to diagnose — you just see "recipe format failed with exit code 2" with no indication of which file or what went wrong.

What?

  • Replace --quiet with > /dev/null in both format and format-check recipes
  • Ruff's reformatted-file list goes to stdout (suppressed), while parse errors go to stderr (now visible)

See Also

Replace --quiet with stdout redirection. Ruff's --quiet flag suppresses
all output including parse errors (e.g. merge markers), making format
failures in CI impossible to diagnose. Redirecting stdout to /dev/null
suppresses the file list but lets errors (which go to stderr) through.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Committed-By-Agent: claude
@jar-stripe jar-stripe marked this pull request as ready for review June 24, 2026 19:33
@jar-stripe jar-stripe requested a review from a team as a code owner June 24, 2026 19:33
@jar-stripe jar-stripe requested review from xavdid and removed request for a team June 24, 2026 19:33
@jar-stripe jar-stripe enabled auto-merge (squash) June 24, 2026 20:20
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