Skip to content

Disable ruff preview mode: unstable rules break CI without config changes #1080

Description

@audreyfeldroy

Problem

ruff.toml sets preview = true under [lint] (line 53). This opts into every unstable, experimental rule across every selected prefix. When ruff ships a new preview rule in any of Air's 30+ selected prefixes, CI can break on the next ruff upgrade without any change to the config.

This is what caused the DOC201 friction in #1078. DOC201 is a preview-only rule. It only fired because preview mode is on. The rule itself wouldn't have been enforced under stable ruff.

The formatter also has preview = true (line 49), which carries the same risk for formatting changes.

Change

Set preview = false for both [lint] and [format]. If specific preview rules are valuable, select them individually so they're a deliberate choice rather than an implicit opt-in to everything unstable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions