Skip to content

Commit

Permalink
Allow tab_width to be configable (#7016)
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Aug 31, 2023
1 parent 92143af commit f4ba0ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/ruff_python_formatter/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f4ba0ea

Please sign in to comment.