mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-15 08:00:19 +00:00
Allow tab_width
to be configable (#7016)
This commit is contained in:
parent
92143afeee
commit
f4ba0ea144
1 changed files with 6 additions and 0 deletions
|
@ -94,6 +94,12 @@ impl PyFormatOptions {
|
||||||
self.source_map_generation
|
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]
|
#[must_use]
|
||||||
pub fn with_quote_style(mut self, style: QuoteStyle) -> Self {
|
pub fn with_quote_style(mut self, style: QuoteStyle) -> Self {
|
||||||
self.quote_style = style;
|
self.quote_style = style;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue