Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update yapf requirement from ==0.22.* to ==0.30.* #5

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Feb 19, 2021

Updates the requirements on yapf to permit the latest version.

Changelog

Sourced from yapf's changelog.

[0.30.0] 2020-04-23

Added

  • 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.

Changed

  • 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.

Fixed

  • Honor a disable directive at the end of a multiline comment.
  • Don't require splitting before comments in a list when SPLIT_ALL_TOP_LEVEL_COMMA_SEPARATED_VALUES is set. The knob is meant for values, not comments, which may be associated with the current line.
  • 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.

[0.29.0] 2019-11-28

Added

  • Add the --quiet flag to suppress output. The return code is 1 if there are changes, similarly to the --diff flag.
  • Add the indent_closing_brackets option. This is the same as the dedent_closing_brackets option except the brackets are indented the same as the previous line.

Changed

  • Collect a parameter list into a single object. This allows us to track how a parameter list is formatted, keeping state along the way. This helps when supporting Python 3 type annotations.
  • Catch and report UnicodeDecodeError exceptions.
  • Improved description of .yapfignore syntax.

Fixed

  • Format subscript lists so that splits are essentially free after a comma.
  • Don't add a space between a string and its subscript.
  • Extend discovery of '.style.yapf' & 'setup.cfg' files to search the root directory as well.
  • Make sure we have parameters before we start calculating penalties for splitting them.
  • Indicate if a class/function is nested to ensure blank lines when needed.
  • Fix extra indentation in async-for else statement.
  • A parameter list with no elements shouldn't count as exceeding the column limit.
  • When splitting all comma separated values, don't treat the ending bracket as special.

... (truncated)

Commits
  • f967fd6 extend CONTINUATION_ALIGN_STYLE=FIXED for space indentation (#791)
  • 22ef70f Update chromium style to match what's used in Chromium (#789)
  • 15ae9f6 Inline functions used only once.
  • 86a12d6 Added functionality to insert spaces around dicts, lists, and tuples. (#657)
  • b306e98 Adds FORCE_MULTILINE_DICT knob (#808)
  • 4e54dbb Knob for spaces around subscript colon
  • 01f2a6a Add space inside brackets
  • e3b159b Add docstrings and other things for the linter.
  • c4257ed Honor the 'disable' directive at the end of a multiline comment
  • 96ec1fb add INDENT_CLOSING_BRACKETS option
  • Additional commits viewable in compare view

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)

Updates the requirements on [yapf](https://github.com/google/yapf) to permit the latest version.
- [Release notes](https://github.com/google/yapf/releases)
- [Changelog](https://github.com/google/yapf/blob/main/CHANGELOG)
- [Commits](google/yapf@v0.22.0...v0.30.0)

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 19, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Mar 15, 2021

Superseded by #40.

@dependabot dependabot bot closed this Mar 15, 2021
@dependabot dependabot bot deleted the dependabot/pip/yapf-eq-0.30.star branch March 15, 2021 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants