mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Add hidden --preview
/ --no-preview
options to ruff check
(#7009)
Per discussion at https://github.com/astral-sh/ruff/discussions/6998 <!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> Adds a `--preview` and `--no-preview` option to the CLI for `ruff check` and corresponding settings. The CLI options are hidden for now. Available in the settings as `preview = true` or `preview = false`. Does not include environment variable configuration, although we may add it in the future. ## Test Plan <!-- How was it tested? --> `cargo build` Future work will build on this setting, such as toggling the mode during a test.
This commit is contained in:
parent
f4ba0ea144
commit
96a9717c1a
8 changed files with 57 additions and 3 deletions
|
@ -128,6 +128,7 @@ impl Workspace {
|
|||
external: Some(Vec::default()),
|
||||
ignore: Some(Vec::default()),
|
||||
line_length: Some(LineLength::default()),
|
||||
preview: Some(false),
|
||||
select: Some(defaults::PREFIXES.to_vec()),
|
||||
tab_size: Some(TabSize::default()),
|
||||
target_version: Some(PythonVersion::default()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue