Option to `SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED` even when there is only one argument
Open
enhancement
- Dominant language
- Python
- Stars
- 14k
- Forks
- 904
- PR merge metrics
- No merged PRs in 30d
Description
Right now we have this current format behavior:
``` python
foo(a=1, b=2,)
foo(a=1,)
# formats to:
foo(
a=1,
b=2,
)
foo(a=1,)
```
i.e., `foo(a=1,)` stays as is because there is only one comma in that line. I'd like an option to indent that, making the final behavior:
``` python
foo(a=1, b=2,)
foo(a=1,)
# formats to:
foo(
a=1,
b=2,
)
foo(
a=1,
)
```
Current behavior seems to be intentional and hardcoded into `pytree_unwrapper._DetermineMustSplitAnnotation`
Contributor guide
Assessment
This issue has not been assessed yet.