yapf v0.12.1 Release Notes

Release Date: 2016-10-02 // over 7 years ago
  • ๐Ÿ”„ Changed

    • Dictionary values will be placed on the same line as the key if all of the elements in the dictionary can be placed on one line. Otherwise, the dictionary values will be placed on the next line.

    ๐Ÿ›  Fixed

    • Prefer to split before a terminating r-paren in an argument list if the line would otherwise go over the column limit.
    • Split before the first key in a dictionary if the dictionary cannot fit on a single line.
    • ๐Ÿ‘• Don't count "pylint" comments when determining if the line goes over the column limit.
    • Don't count the argument list of a lambda as a named assign in a function call.