yapf v0.26.0 Release Notes
Release Date: 2019-02-08 // about 5 years ago-
โ Added
ALLOW_SPLIT_BEFORE_DEFAULT_OR_NAMED_ASSIGNS
allows us to split before default / named assignments.ARITHMETIC_PRECEDENCE_INDICATION
removes spacing around binary operators if they have higher precedence than other operators in the same expression. ### ๐ ChangedSPACES_BEFORE_COMMENT
can now be assigned to a specific value (standard behavior) or a list of column values. When assigned to a list, trailing comments will be horizontally aligned to the first column value within the list that is greater than the maximum line length in the block.- ๐ Don't modify the vertical spacing of a line that has a comment "pylint: disable=line-too-long". The line is expected to be too long.
- improved
CONTINUATION_ALIGN_STYLE
to accept quoted or underline-separated option value for passing option with command line arguments. ### ๐ Fixed - When retrieving the opening bracket make sure that it's actually an opening bracket.
- Don't completely deny a lambda formatting if it goes over the column limit. Split only if absolutely necessary.
- โฌ๏ธ Bump up penalty for splitting before a dot ('.').
- Ignore pseudo tokens when calculating split penalties.
- Increase the penalty for splitting before the first bit of a subscript.
- ๐ Improve splitting before dictionary values. Look more closely to see if the dictionary entry is a container. If so, then it's probably split over multiple lines with the opening bracket on the same line as the key. Therefore, we shouldn't enforce a split because of that.
- Increase split penalty around exponent operator.
- Correct spacing when using binary operators on strings with the
NO_SPACES_AROUND_SELECTED_BINARY_OPERATORS
option enabled.