by eliben · 11y ago · 0 comments
Ultimately, we'd like to have these things configurable via the style settings of yapf, so multiple detailed styles can be selected.
Patches welcome :)
def OtherLongFunctionName(One,
Two,
Three
):
print "Does stuff"
def MyFunction(Param1,
OtherParam,
FooParam,
EtcParam
):
if ((Param1 * 1000) > 5000 &&
OtherParam is not None &&
len(FooParam) > 50
):
new_instance_dict = {
"TestingFoo": Param1,
"NewFoo": OtherParam,
"LongFooBar": FooParam,
}
recursive = MyFunction(
OtherLongFunctionName(
Param1,
OtherParam,
FooParam
)
)
It doesn't comply to PEP8 due to the indentation of nested params and stuff on the new lines. PEP8 apparently wants them aligned with the opening/starting bracket. This looks horrible, and just right-aligns all your code into little columns. And doesn't work very well with nested function calls.