yapf v0.16.1 Release Notes
Release Date: 2017-03-22 // about 7 years ago-
๐ Changed
- ๐ Improved performance of cloning the format decision state object. This improved the time in one large case from 273.485s to 234.652s.
- ๐ Relax the requirement that a named argument needs to be on one line. Going over the column limit is more of an issue to pylint than putting named args on multiple lines.
- Don't make splitting penalty decisions based on the original formatting. This can and does lead to non-stable formatting, where yapf will reformat the same code in different ways. ### ๐ Fixed
- Ensure splitting of arguments if there's a named assign present.
- Prefer to coalesce opening brackets if it's not at the beginning of a function call.
- Prefer not to squish all of the elements in a function call over to the right-hand side. Split the arguments instead.
- We need to split a dictionary value if the first element is a comment anyway, so don't force the split here. It's forced elsewhere.
- Ensure tabs are used for continued indentation when USE_TABS is True.