mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 21:05:08 +00:00
Remove tab-size setting (#12835)
Co-authored-by: Alex Waygood <alex.waygood@gmail.com> Closes https://github.com/astral-sh/ruff/issues/12041
This commit is contained in:
parent
89a82158a1
commit
d1e15f6246
4 changed files with 7 additions and 33 deletions
|
@ -445,15 +445,6 @@ impl Configuration {
|
|||
}
|
||||
};
|
||||
|
||||
#[allow(deprecated)]
|
||||
if options.tab_size.is_some() {
|
||||
let config_to_update = path.map_or_else(
|
||||
|| String::from("your `--config` CLI arguments"),
|
||||
|path| format!("`{}`", fs::relativize_path(path)),
|
||||
);
|
||||
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."));
|
||||
}
|
||||
|
||||
Ok(Self {
|
||||
builtins: options.builtins,
|
||||
cache_dir: options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue