mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 23:54:36 -05:00
Allow tab_width to be configable (#7016)
This commit is contained in:
@@ -94,6 +94,12 @@ impl PyFormatOptions {
|
||||
self.source_map_generation
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn with_tab_width(mut self, tab_width: TabWidth) -> Self {
|
||||
self.tab_width = tab_width;
|
||||
self
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn with_quote_style(mut self, style: QuoteStyle) -> Self {
|
||||
self.quote_style = style;
|
||||
|
||||
Reference in New Issue
Block a user