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:
Micha Reiser 2024-10-08 14:40:22 +02:00 committed by Alex Waygood
parent 89a82158a1
commit d1e15f6246
4 changed files with 7 additions and 33 deletions

View file

@ -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