mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:45:24 +00:00
Respect tab-size
setting in formatter (#8006)
This commit is contained in:
parent
46d5db56cc
commit
4786abac7a
7 changed files with 33 additions and 10 deletions
|
@ -363,7 +363,11 @@ pub struct Options {
|
|||
)]
|
||||
pub line_length: Option<LineLength>,
|
||||
|
||||
/// The tabulation size to calculate line length.
|
||||
/// The number of spaces a tab is equal to when enforcing long-line violations (like `E501`)
|
||||
/// or formatting code with the formatter.
|
||||
///
|
||||
/// This option changes the number of spaces inserted by the formatter when
|
||||
/// using soft-tabs (`indent-style = space`).
|
||||
#[option(
|
||||
default = "4",
|
||||
value_type = "int",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue