Add a new Python parser to generate logical lines.
Added support for # fmt: on and # fmt: off pragmas.
Changes
Moved 'pytree' parsing tools into its own subdirectory.
Add support for Python 3.10.
Format generated dicts with respect to same rules as regular dicts
Generalized the ending comma heuristic to subscripts.
Supports "pyproject.toml" by default.
Fixed
Split line before all comparison operators.
[0.32.0] 2021-12-26
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.
[0.31.0] 2021-03-14
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.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps yapf from 0.32 to 0.33.0.
Changelog
Sourced from yapf's changelog.
... (truncated)
Commits
02c6bf0
Bump version to 0.33.041cf38f
Remove references from README.rst (#1071)5451465
Support pyproject.toml by default (#1069)d26a793
Drop official support for all versions of Python not actively supported by th...261841c
Merge pull request #1062 from google/trailing-comma-in-subscriptb41eb9c
Generalized the ending comma heuristic to subscriptsaa4fa66
Merge pull request #1061 from google/thiagowfx-patch-105a27c4
ci: run on every PR and on main branch4ac53eb
Merge pull request #1052 from cerob/patch-1a5cfd62
Merge pull request #1055 from eltoder/feature/small-fixesDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)