Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip "magic trailing comma" when formatting with black (#5170)
The "magic trailing comma" is a comma at the end of bracketed list that forces black to format the list entries on separate lines, even if they would fit on one line. For example, if you write: ```python foo(a, b,) ``` black will see that trailing comma and format this as: ```python foo( a, b, ) ``` But with the `skip-magic-trailing-comma` setting enabled this will format on a single line instead ```python foo(a, b) ``` IME the trailing commas are almost always unintentional, e.g. left over from other refactos, and result in wasted vertical space. I suggest we enable this flag.
- Loading branch information