yapf v0.23.0 Release Notes

Release Date: 2018-08-27 // over 5 years ago
  • โž• Added

    • DISABLE_ENDING_COMMA_HEURISTIC is a new knob to disable the heuristic which splits a list onto separate lines if the list is comma-terminated. ### ๐Ÿ›  Fixed
    • There's no need to increase N_TOKENS. In fact, it causes other things which use lib2to3 to fail if called from YAPF.
    • ๐Ÿ”„ Change the exception message instead of creating a new one that's just a clone.
    • ๐Ÿ‘‰ Make sure not to reformat when a line is disabled even if the --lines option is specified.
    • The "no spaces around operators" flag wasn't correctly converting strings to sets. Changed the regexp to handle it better.