- Update to 0.32.0:
- 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.
- Change tests to support "pytest".
- Reformat so that "flake8" is happy.
- 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."
- 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.
- Fix update-alternatives use.
OBS-URL: https://build.opensuse.org/request/show/980752
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yapf?expand=0&rev=11
- 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.
- Change tests to support "pytest".
- Reformat so that "flake8" is happy.
- 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."
- 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.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yapf?expand=0&rev=20
- update to 0.31.0:
- 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.
- Do not scan exlcuded directories. Prior versions would scan an exluded
folder then exclude its contents on a file by file basis. Preventing the
folder being scanned is faster.
OBS-URL: https://build.opensuse.org/request/show/906775
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-yapf?expand=0&rev=10
- 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.
- Do not scan exlcuded directories. Prior versions would scan an exluded
folder then exclude its contents on a file by file basis. Preventing the
folder being scanned is faster.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yapf?expand=0&rev=19
- update to 0.30.0
* Added `SPACES_AROUND_LIST_DELIMITERS`, `SPACES_AROUND_DICT_DELIMITERS`,
and `SPACES_AROUND_TUPLE_DELIMITERS` to add spaces after the opening
and before the closing delimiters for lists, dicts, and tuples.
* Adds `FORCE_MULTILINE_DICT` knob to ensure dictionaries always split,
even when shorter than the max line length.
* New knob `SPACE_INSIDE_BRACKETS` to add spaces inside brackets, braces, and
parentheses.
* New knob `SPACES_AROUND_SUBSCRIPT_COLON` to add spaces around the subscript /
slice operator.
* Renamed "chromium" style to "yapf". Chromium will now use PEP-8 directly.
* `CONTINUATION_ALIGN_STYLE` with `FIXED` or `VALIGN-RIGHT` now works with
space indentation.
* Don't over-indent a parameter list when not needed. But make sure it is
properly indented so that it doesn't collide with the lines afterwards.
* Don't split between two-word comparison operators: "is not", "not in", etc.
- Replace nose with pytest
* not WLOG, some tests get skipped because of capturing stdin
OBS-URL: https://build.opensuse.org/request/show/810164
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yapf?expand=0&rev=17