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

fix(deps): update dependency yapf to ^0.40.0 #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 12, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
yapf (changelog) ^0.27.0 -> ^0.40.0 age adoption passing confidence

Release Notes

google/yapf (yapf)

v0.40.2

Compare Source

Changes
  • The verification module has been removed. NOTE: this changes the public APIs
    by removing the "verify" parameter.
  • Changed FORCE_MULTILINE_DICT to override SPLIT_ALL_TOP_LEVEL_COMMA_SEPARATED_VALUES.
  • Adopt pyproject.toml (PEP 517) for build system
Fixed
  • Do not treat variables named match as the match keyword.
  • Fix SPLIT_ARGUMENTS_WHEN_COMMA_TERMINATED for one-item argument lists.
  • Fix trailing backslash-newline on Windows when using stdin.

v0.40.1

Compare Source

Fixed
  • Corrected bad distribution v0.40.0 package.

v0.40.0

Compare Source

Added
  • Support for Python 3.11
  • Add the --print-modified flag to print out file names of modified files when
    running in in-place mode.
Changes
  • Replace the outdated and no-longer-supported lib2to3 with a fork of blib2to3,
    Black's version of lib2to3.
Removed
  • Support for Python versions < 3.7 are no longer supported.

v0.33.0

Compare Source

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

v0.32.0

Compare Source

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.

v0.31.0

Compare Source

Added
  • Renamed 'master' branch 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.

v0.30.0

Compare Source

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.

v0.29.1

Compare Source

v0.29.0

Compare Source

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.
  • The "no blank lines between nested classes or functions" knob should only
    apply to the first nested class or function, not all of them.

v0.28.0

Compare Source

Added
  • New knob SPLIT_ALL_TOP_LEVEL_COMMA_SEPARATED_VALUES is a variation on
    SPLIT_ALL_COMMA_SEPARATED_VALUES in which, if a subexpression with a comma
    fits in its starting line, then the subexpression is not split (thus avoiding
    unnecessary splits).
Changed
  • Set INDENT_DICTIONARY_VALUE for Google style.
  • Set JOIN_MULTIPLE_LINES = False for Google style.
Fixed
  • BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF=False wasn't honored because the
    number of newlines was erroneously calculated beforehand.
  • Lambda expressions shouldn't have an increased split penalty applied to the
    'lambda' keyword. This prevents them from being properly formatted when they're
    arguments to functions.
  • A comment with continuation markers (??) shouldn't mess with the lineno count.
  • Only emit unformatted if the "disable long line" is at the end of the line.
    Otherwise we could mess up formatting for containers which have them
    interspersed with code.
  • Fix a potential race condition by using the correct style for opening a file
    which may not exist.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title fix(deps): update dependency yapf to ^0.30.0 fix(deps): update dependency yapf to ^0.31.0 Mar 12, 2021
@renovate renovate bot changed the title fix(deps): update dependency yapf to ^0.31.0 fix(deps): update dependency yapf to ^0.32.0 Jan 25, 2022
@renovate renovate bot force-pushed the renovate/yapf-0.x branch 2 times, most recently from 4a7e66c to ee54948 Compare January 25, 2022 15:39
@renovate
Copy link
Author

renovate bot commented Mar 17, 2023

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: poetry.lock
installing v2 tool python v3.11.4
linking tool python v3.11.4
Python 3.11.4
pip 23.1.2 from /opt/containerbase/tools/python/3.11.4/lib/python3.11/site-packages/pip (python 3.11)
Installed v2 //usr/local/containerbase/tools/v2/python.sh in 6 seconds
Not a semver like version - aborting: ==1.0.5


@renovate renovate bot changed the title fix(deps): update dependency yapf to ^0.32.0 fix(deps): update dependency yapf to ^0.33.0 May 28, 2023
@renovate renovate bot changed the title fix(deps): update dependency yapf to ^0.33.0 fix(deps): update dependency yapf to ^0.40.0 Jun 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants