astral-sh/ruff

R is valid prefix at runtime but not included in JSON schema

Open

#17.890 geöffnet am 6. Mai 2025

Auf GitHub ansehen
 (10 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Rust (2.088 Forks)batch import
bugconfigurationhelp wanted

Repository-Metriken

Stars
 (47.527 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 3T 8h) (573 gemergte PRs in 30 T)

Beschreibung

Summary

Problem: ruff check --select R works, so R seems to be a valid rule selector. But neither https://github.com/astral-sh/ruff/blob/main/ruff.schema.json nor https://github.com/SchemaStore/schemastore/edit/master/src/schemas/json/ruff.json include "R" in the list of valid select rules. This leads to pyproject.toml that includes "R" in lint.select items to error in IDEs.

Fix: I didn't open a PR because I don't know whether R is or isn't supposed to be valid.

Workaround: Use the more explicit "RET", which is the only rule set that R enables.

Version

ruff 0.11.8 (75effb8ed 2025-05-01)

Contributor Guide