Skip to content

Use new Diagnostic functionality for Ruff rules #19690

@ntBre

Description

@ntBre

It's a bit late in the process, but it seemed useful to write up a tracking issue for the remaining TODOs before we can take advantage of our new Diagnostic infrastructure in Ruff. This is primarily focused on the full output format, which is where the new functionality like multiple annotations will be visible. We've already switched over the concise and a few other formats without any user-visible changes.

In brief, the remaining tasks are to switch Ruff over to the new full-format rendering code in ruff_db, update our caching code to preserve all of the information in the new diagnostics instead of the legacy subset (or sidestep this by avoiding the cache entirely in those cases, as we ended up doing), and then actually use some of the new functionality in real lint rules. The first of these has been broken into a few subtasks to make it easier for review.

Metadata

Metadata

Assignees

Labels

diagnosticsRelated to reporting of diagnostics.trackingA "meta" issue that tracks completion of a bigger task via a list of smaller scoped issues.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions