yapf v0.9.0 Release Notes
Release Date: 2016-05-29 // almost 8 years ago-
โ Added
- Added a knob (SPLIT_PENALTY_BEFORE_IF_EXPR) to adjust the split penalty before an if expression. This allows the user to place a list comprehension all on one line.
- Added a knob (SPLIT_BEFORE_FIRST_ARGUMENT) that encourages splitting before the first element of a list of arguments or parameters if they are going to be split anyway.
- Added a knob (SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED) splits arguments to a function if the list is terminated by a comma.
๐ Fixed
- Don't split before a first element list argument as we would before a first element function call.
- Don't penalize when we must split a line.
- ๐ Allow splitting before the single argument in a function call.