Closes #21499: Restore deterministic Ruff linting (match Ruff 0.15.1 preview defaults) #298

Closed
opened 2026-04-05 16:25:03 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 2/20/2026

Fixes: #21499

This PR restores deterministic Ruff behavior by explicitly setting the legacy default lint.select rules used with preview = true, matching Ruff 0.15.1.

Ruff 0.15.2 updated the preview defaults, which caused our lint step to start failing when Ruff is installed unpinned. This change is intentionally small and focused on getting CI green again.
More details: https://github.com/astral-sh/ruff/releases/tag/0.15.2

*Originally created by @pheus on 2/20/2026* ### Fixes: #21499 This PR restores deterministic Ruff behavior by explicitly setting the legacy default `lint.select` rules used with `preview = true`, matching Ruff 0.15.1. Ruff 0.15.2 updated the preview defaults, which caused our lint step to start failing when Ruff is installed unpinned. This change is intentionally small and focused on getting CI green again. More details: https://github.com/astral-sh/ruff/releases/tag/0.15.2
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#298