yapf v0.19.0 Release Notes

Release Date: 2017-10-14 // over 6 years ago
  • โž• Added

    • Added SPLIT_BEFORE_EXPRESSION_AFTER_OPENING_PAREN that enforces a split after the opening paren of an expression that's surrounded by parens. ### ๐Ÿ”„ Changed
    • Split before the ending bracket of a comma-terminated tuple / argument list if it's not a single element tuple / arg list. ### ๐Ÿ›  Fixed
    • Prefer to split after a comma in an argument list rather than in the middle of an argument.
    • A non-multiline string may have newlines if it contains continuation markers itself. Don't add a newline after the string when retaining the vertical space.
    • Take into account the "async" keyword when determining if we must split before the first argument.
    • Increase affinity for "atom" arguments in function calls. This helps prevent lists from being separated when they don't need to be.
    • Don't place a dictionary argument on its own line if it's the last argument in the function call where that function is part of a builder-style call.
    • Append the "var arg" type to a star in a star_expr.