black v18.3.a2 Release Notes

    • ๐Ÿ”„ changed positioning of binary operators to occur at beginning of lines instead of at the end, following a recent change to PEP 8 (#21)

    • ignore empty bracket pairs while splitting. This avoids very weirdly looking formattings (#34, #35)

    • โœ‚ remove a trailing comma if there is a single argument to a call

    • if top level functions were separated by a comment, don't put four empty lines after the upper function

    • ๐Ÿ›  fixed unstable formatting of newlines with imports

    • ๐Ÿ›  fixed unintentional folding of post scriptum standalone comments into last statement if it was a simple statement (#18, #28)

    • ๐Ÿ›  fixed missing space in numpy-style array indexing (#33)

    • ๐Ÿ›  fixed spurious space after star-based unary expressions (#31)