yapf v0.32.0 Release Notes
Release Date: 2021-12-26 // over 1 year ago-
โ Added
- ๐ Look at the 'pyproject.toml' file to see if it contains ignore file information for YAPF.
- ๐ New entry point
yapf_api.FormatTree
for formatting lib2to3 concrete syntax trees. - โ Add CI via GitHub Actions. ### ๐ Changes
- ๐ Change tests to support "pytest".
- Reformat so that "flake8" is happy.
- ๐ Use GitHub Actions instead of Travis for CI.
- Clean up the FormatToken interface to limit how much it relies upon the pytree node object.
- Rename "unwrapped_line" module to "logical_line."
- ๐ Rename "UnwrappedLine" class to "LogicalLine." ### ๐ Fixed
- โ Added pyproject extra to install toml package as an optional dependency.
- Enable
BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF
knob for "pep8" style, so method definitions inside a class are surrounded by a single blank line as prescribed by PEP8. - ๐ Fixed the '...' token to be spaced after a colon.
Previous changes from v0.31.0
-
โ Added
- ๐ Renamed 'master' brannch to 'main'.
- Add 'BLANK_LINES_BETWEEN_TOP_LEVEL_IMPORTS_AND_VARIABLES' to support setting a custom number of blank lines between top-level imports and variable definitions.
- Ignore end of line
# copybara:
directives when checking line length. - ๐ Look at the 'pyproject.toml' file to see if it contains style information for YAPF. ### ๐ Changed
- Do not scan excluded directories. Prior versions would scan an excluded folder then exclude its contents on a file by file basis. Preventing the folder being scanned is faster. ### ๐ Fixed
- ๐ Exclude directories on Windows.