Kyle Gottfried

Results 99 comments of Kyle Gottfried
trafficstars

Thanks for reviewing @bwendling 👍

Please add a new knob + appropriate tests

For tox.ini I would suggest passing in the `--style=` flag in the tox.ini over adding support for a `yapf` section. Since this PR was opened out-of-the-box pyproject.toml support was added...

Repro: 0.33.0 ```python $ pipx run --spec="yapf==0.33.0" yapf --no-local-style --style="{split_complex_comprehension: True}" 2> /dev/null

Git bisected that bb2baba5c2bb645a88f78d0173b3f43780cfb6a0 introduced the change.

Attempt to repro with version >=0.33.0

Hmm. My assumption here is that this is because it is being treated like a Tuple of length 1 where this would be undesired behavior.

~Away from computer, check if `SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED` does what you want.~ This is for function definitions, not function calls. ```python $ pipx run yapf --no-local-style --style="{SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED: true}" bar = foo("only item",)...