Skip to content

Use DisplayDiagnosticsConfig::program for Ruff's GitHub output#23240

Merged
ntBre merged 1 commit intomainfrom
brent/github-program
Feb 11, 2026
Merged

Use DisplayDiagnosticsConfig::program for Ruff's GitHub output#23240
ntBre merged 1 commit intomainfrom
brent/github-program

Conversation

@ntBre
Copy link
Contributor

@ntBre ntBre commented Feb 11, 2026

Summary

This is a follow-up to #22125, which added a program field to the shared
DisplayDiagnosticConfig type. We can reuse this in the GitHub rendering too to
avoid some of the special casing we had just for Ruff.

The one wrinkle here is that we previously used capital Ruff for GitHub
diagnostics, but we use ruff in the JUnit diagnostics. I think it's probably
fine to change this in the GitHub diagnostics, but it felt worth calling out.

Test Plan

Existing tests with updated snapshots showing the case change

Summary
--

This is a follow-up to #22125, which added a `program` field to the shared
`DisplayDiagnosticConfig` type. We can reuse this in the GitHub rendering too to
avoid some of the special casing we had just for Ruff.

The one wrinkle here is that we previously used capital `Ruff` for GitHub
diagnostics, but we use `ruff` in the JUnit diagnostics. I think it's probably
fine to change this in the GitHub diagnostics, but it felt worth calling out.

Test Plan
--

Existing tests with updated snapshots showing the case change
@ntBre ntBre added the diagnostics Related to reporting of diagnostics. label Feb 11, 2026
@ntBre
Copy link
Contributor Author

ntBre commented Feb 11, 2026

(This is mostly internal An internal refactor or improvement , but I guess the case change is user-visible)

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 11, 2026

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre marked this pull request as ready for review February 11, 2026 21:47
@ntBre ntBre merged commit 09956b4 into main Feb 11, 2026
47 checks passed
@ntBre ntBre deleted the brent/github-program branch February 11, 2026 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

diagnostics Related to reporting of diagnostics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants