How to remove trailing comma? #9350
Answered
by
tjkuson
michaelxswe
asked this question in
Q&A
-
Before applying the formatter
After applying the formatter
Is there a way to configure the ruff formatter to remove the trailing comma next to arg10? Maybe by passing an argument to
|
Beta Was this translation helpful? Give feedback.
Answered by
tjkuson
Jan 2, 2024
Replies: 1 comment 1 reply
-
The Ruff formatter tries to follow the Black code style, which adds a trailing comma. A configuration option has not been added to Ruff to change that behaviour (it would have to be a new feature). |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
michaelxswe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Ruff formatter tries to follow the Black code style, which adds a trailing comma. A configuration option has not been added to Ruff to change that behaviour (it would have to be a new feature).