yapf v0.18.0 Release Notes

Release Date: 2017-09-18 // over 6 years ago
  • โž• Added

    • Option ALLOW_SPLIT_BEFORE_DICT_VALUE allows a split before a value. If False, then it won't be split even if it goes over the column limit. ### ๐Ÿ”„ Changed
    • ๐Ÿ‘‰ Use spaces around the '=' in a typed name argument to align with 3.6 syntax. ### ๐Ÿ›  Fixed
    • ๐Ÿ‘ Allow semicolons if the line is disabled.
    • ๐Ÿ›  Fix issue where subsequent comments at decreasing levels of indentation were improperly aligned and/or caused output with invalid syntax.
    • ๐Ÿ›  Fix issue where specifying a line range removed a needed line before a comment.
    • ๐Ÿ›  Fix spacing between unary operators if one is 'not'.
    • Indent the dictionary value correctly if there's a multi-line key.
    • ๐Ÿšš Don't remove needed spacing before a comment in a dict when in "chromium" style.
    • Increase indent for continuation line with same indent as next logical line with 'async with' statement.