Open PLPeeters opened 9 years ago
I'm not opposed to the idea of adding this as an option. It can help in cases where the heuristics fail. I'll add this as an enhancement.
Related to this, but a little bit the opposite, code like this:
def __init__(self, values, categories=None, ordered=False, name=None,
fastpath=False, levels=None):
pass
gets reformatted as
def __init__(self,
values,
categories=None,
ordered=False,
name=None,
fastpath=False,
levels=None):
pass
Is there a way to configure yapf to prefer the first? (it's within 79 chars line length limit)
I couldn't find a style option to allow function call parameters to be on different lines.
For instance:
Gets changed to:
I think this use case is common enough to justify a style option. Thoughts?