astral-sh / astral-sh/ruff

Preview: Consider erroring if direct code is used when mode is disabled

Open
#7,366 0 comments 0 reactions 0 assignees View on GitHub
needs-decision preview
Dominant language
Rust
Stars
49.6k
Forks
2.4k
Avg merge
2d 1h
Merged PRs (30d)
458

Description

In https://github.com/astral-sh/ruff/pull/7210/commits/167aeeefe23e18c251cf67065cc6e5d55c24f060 we demonstrate that a warning is displayed when a preview rule is selected with a direct (exact) code but preview mode is disabled. We may want make this an error instead (and exit with a non-zero code).

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the linked Ruff pull request and commit to understand how the warning is currently produced when a preview rule is selected by exact code with preview mode disabled. Trace that behavior to the relevant CLI entry point, then verify that the condition becomes an error and exits with a non-zero status.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.