All Versions
51
Latest Version
Avg Release Cycle
78 days
Latest Release
849 days ago

Changelog History
Page 5

  • v0.7.0 Changes

    April 09, 2016

    โž• Added

    • ๐Ÿ‘Œ Support for Python 3.5.
    • Add 'ALLOW_MULTILINE_LAMBDAS' which allows lambdas to be formatted onto multiple lines.

    ๐Ÿ›  Fixed

    • Lessen penalty for splitting before a dictionary keyword.
    • Formatting of trailing comments on disabled formatting lines.
    • Disable / enable formatting at end of multi-line comment.
  • v0.6.3 Changes

    March 06, 2016

    ๐Ÿ”„ Changed

    • ๐Ÿ“š Documentation updated.

    ๐Ÿ›  Fixed

    • ๐Ÿ›  Fix spacing of multiline comments when formatting is disabled.
  • v0.6.2 Changes

    November 01, 2015

    ๐Ÿ”„ Changed

    • ๐Ÿ’… Look at the 'setup.cfg' file to see if it contains style information for YAPF.
    • ๐Ÿ’… Look at the '~/.config/yapf/style' file to see if it contains global style information for YAPF.

    ๐Ÿ›  Fixed

    • ๐Ÿ‘‰ Make lists that can fit on one line more likely to stay together.
    • Correct formatting of 'args' and '*kwargs' when there are default values in the argument list.
  • v0.6.1 Changes

    October 24, 2015

    ๐Ÿ›  Fixed

    • ๐Ÿ‘‰ Make sure to align comments in data literals correctly. Also make sure we don't count a "#." in a string as an i18n comment.
    • Retain proper vertical spacing before comments in a data literal.
    • ๐Ÿ‘‰ Make sure that continuations from a compound statement are distinguished from the succeeding line.
    • Ignore preceding comments when calculating what is a "dictionary maker".
    • โž• Add a small penalty for splitting before a closing bracket.
    • ๐Ÿšš Ensure that a space is enforced after we remove a pseudo-paren that's between two names, keywords, numbers, etc.
    • Increase the penalty for splitting after a pseudo-paren. This could lead to less readable code in some circumstances.
  • v0.6.0 Changes

    October 18, 2015

    โž• Added

    • โž• Add knob to indent the dictionary value if there is a split before it.

    ๐Ÿ”„ Changed

    • No longer check that a file is a "Python" file unless the '--recursive' flag is specified.
    • No longer allow the user to specify a directory unless the '--recursive' flag is specified.

    ๐Ÿ›  Fixed

    • When determining if we should split a dictionary's value to a new line, use the longest entry instead of the total dictionary's length. This allows the formatter to reformat the dictionary in a more consistent manner.
    • ๐Ÿ‘Œ Improve how list comprehensions are formatted. Make splitting dependent upon whether the "comp_for" or "comp_if" goes over the column limit.
    • Don't over indent if expression hanging indents if we expect to dedent the closing bracket.
    • ๐Ÿ‘Œ Improve splitting heuristic when the first argument to a function call is itself a function call with arguments. In cases like this, the remaining arguments to the function call would look badly aligned, even though they are techincally correct (the best kind of correct!).
    • ๐Ÿ‘Œ Improve splitting heuristic more so that if the first argument to a function call is a data literal that will go over the column limit, then we want to split before it.
    • โœ‚ Remove spaces around '**' operator.
    • Retain formatting of comments in the middle of an expression.
    • Don't add a newline to an empty file.
    • Over indent a function's parameter list if it's not distinguished from the body of the function.
  • v0.5.0 Changes

    October 11, 2015

    โž• Added

    • โž• Add option to exclude files/directories from formatting.
    • โž• Add a knob to control whether import names are split after the first '('.

    ๐Ÿ›  Fixed

    • Indent the continuation of an if-then statement when it's not distinguished from the body of the if-then.
    • ๐Ÿ‘ Allow for sensible splitting of array indices where appropriate.
    • Prefer to not split before the ending bracket of an atom. This produces better code in most cases.
    • Corrected how horizontal spaces were presevered in a disabled region.
  • v0.4.0 Changes

    October 07, 2015

    โž• Added

    • ๐Ÿ‘Œ Support for dedenting closing brackets, "facebook" style.

    ๐Ÿ›  Fixed

    • Formatting of tokens after a multiline string didn't retain their horizontal spacing.
  • v0.3.1 Changes

    September 30, 2015

    ๐Ÿ›  Fixed

    • Format closing scope bracket correctly when indentation size changes.
  • v0.3.0 Changes

    September 20, 2015

    โž• Added

    • Return a 2 if the source changed, 1 on error, and 0 for no change.

    ๐Ÿ›  Fixed

    • ๐Ÿ‘‰ Make sure we format if the "lines" specified are in the middle of a statement.
  • v0.2.9 Changes

    September 13, 2015

    ๐Ÿ›  Fixed

    • Formatting of multiple files. It was halting after formatting the first file.