Knob to force argument splitting in dict even not comma terminated
- Dominant language
- Python
- Stars
- 14k
- Forks
- 904
- PR merge metrics
- No merged PRs in 30d
Description
With `SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED=true` the following formatting occurs:
```
responseDict = {
"timestamp": timestamp,
"someValue": value,
"whatever": 120
}
responseDict = {
"timestamp": timestamp,
"someValue": value,
"whatever": 120,
}
```
to:
```
responseDict = {"timestamp": timestamp, "someValue": value, "whatever": 120}
responseDict = {
"timestamp": timestamp,
"someValue": value,
"whatever": 120,
}
```
I'd like to have the knob to keep short dicts with argument splitting (i.e. not join to one line) even if they don't end with a comma:
```
responseDict = {
"timestamp": timestamp,
"someValue": value,
"whatever": 120
}
responseDict = {
"timestamp": timestamp,
"someValue": value,
"whatever": 120,
}
```
Contributor guide
Assessment
This issue has not been assessed yet.