mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 18:28:24 +00:00
Remove output-format=text
setting (#12836)
This commit is contained in:
parent
5c3c0c4705
commit
202c6a6d75
7 changed files with 19 additions and 103 deletions
|
@ -454,17 +454,6 @@ impl Configuration {
|
|||
return Err(anyhow!("The `tab-size` option has been renamed to `indent-width` to emphasize that it configures the indentation used by the formatter as well as the tab width. Please update {config_to_update} to use `indent-width = <value>` instead."));
|
||||
}
|
||||
|
||||
#[allow(deprecated)]
|
||||
if options.output_format == Some(OutputFormat::Text) {
|
||||
let config_to_update = path.map_or_else(
|
||||
|| String::from("your `--config` CLI arguments"),
|
||||
|path| format!("`{}`", fs::relativize_path(path)),
|
||||
);
|
||||
return Err(anyhow!(
|
||||
r#"The option `output_format=text` is no longer supported. Update {config_to_update} to use `output-format="concise"` or `output-format="full"` instead."#
|
||||
));
|
||||
}
|
||||
|
||||
Ok(Self {
|
||||
builtins: options.builtins,
|
||||
cache_dir: options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue