yapf v0.24.0 Release Notes
Release Date: 2018-09-07 // over 5 years ago-
โ Added
- Added 'SPLIT_BEFORE_DOT' knob to support "builder style" calls. The "builder style" option didn't work as advertised. Lines would split after the dots, not before them regardless of the penalties. ### ๐ Changed
- Support Python 3.7 in the tests. The old "comp_for" and "comp_if" nodes are now "old_comp_for" and "old_comp_if" in lib2to3. ### ๐ Fixed
- Don't count inner function calls when marking arguments as named assignments.
- ๐ Make sure that tuples and the like are formatted nicely if they all can't fit on a single line. This is similar to how we format function calls within an argument list.
- ๐ Allow splitting in a subscript if it goes over the line limit.
- Increase the split penalty for an if-expression.
- Increase penalty for splitting in a subscript so that it's more likely to split in a function call or other data literal.
- Cloning a pytree node doesn't transfer its a annotations. Make sure we do that so that we don't lose information.
- Revert change that broke the "no_spaces_around_binary_operators" option.
- ๐ The "--style-help" option would output string lists and sets in Python types. If the output was used as a style, then it wouldn't parse those values correctly.