Skip to content

build(deps-dev): bump black from 26.3.1 to 26.5.1 in the minor group across 1 directory#578

Open
dependabot[bot] wants to merge 1 commit into
v0.x.xfrom
dependabot/pip/minor-3d3d116aec
Open

build(deps-dev): bump black from 26.3.1 to 26.5.1 in the minor group across 1 directory#578
dependabot[bot] wants to merge 1 commit into
v0.x.xfrom
dependabot/pip/minor-3d3d116aec

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 19, 2026

Bumps the minor group with 1 update in the / directory: black.

Updates black from 26.3.1 to 26.5.1

Release notes

Sourced from black's releases.

26.5.1

Stable style

  • Fix unstable formatting of annotated assignments whose subscript annotation contains an inline comment (e.g. x: list[ # pyright: ignore[...]) (#5130)
  • Preserve inline comments (including # type: ignore) immediately before a # fmt: skip line, avoiding AST equivalence failures (#5139)

Packaging

  • Correct the version in the published executables (#5137)

Documentation

  • Add Neovim integration guide covering conform.nvim, ALE, and simple command approaches (#5124)

26.5.0

Highlights

  • Add support for unpacking in comprehensions (PEP 798) and for lazy imports (PEP 810), both new syntactic features in Python 3.15 (#5048)
  • Python 3.15 is now supported. Compiled wheels are not yet provided for Python 3.15, so performance may be slower than on existing Python versions. Wheels will be provided once Python 3.15 is later in its release cycle. (#5127)

Stable style

  • Fix # fmt: skip being ignored in nested if expressions with parenthesized in clauses (#4903)
  • Add syntactic support for Python 3.15 (#5048)
  • Fix crash when an f-string follows a # fmt: off comment inside brackets (#5097)
  • Preserve multiline compound statement headers when # fmt: skip is placed on the colon line (#5117)

Preview style

  • Improve heuristics around whether blank lines should appear before, within and after groups of same-name decorated functions (such as @overload groups) in .pyi stub files (#5021)
  • Fix blank lines being removed between a function and a decorated class in .pyi stub files (#5092)
  • Prevent string merger from creating unsplittable long lines when a pragma comment (e.g. # type: ignore) follows the closing bracket (#5096)

Packaging

Output

... (truncated)

Changelog

Sourced from black's changelog.

Version 26.5.1

Stable style

  • Fix unstable formatting of annotated assignments whose subscript annotation contains an inline comment (e.g. x: list[ # pyright: ignore[...]) (#5130)
  • Preserve inline comments (including # type: ignore) immediately before a # fmt: skip line, avoiding AST equivalence failures (#5139)

Packaging

  • Correct the version in the published executables (#5137)

Documentation

  • Add Neovim integration guide covering conform.nvim, ALE, and simple command approaches (#5124)

Version 26.5.0

Highlights

  • Add support for unpacking in comprehensions (PEP 798) and for lazy imports (PEP 810), both new syntactic features in Python 3.15 (#5048)
  • Python 3.15 is now supported. Compiled wheels are not yet provided for Python 3.15, so performance may be slower than on existing Python versions. Wheels will be provided once Python 3.15 is later in its release cycle. (#5127)

Stable style

  • Fix # fmt: skip being ignored in nested if expressions with parenthesized in clauses (#4903)
  • Add syntactic support for Python 3.15 (#5048)
  • Fix crash when an f-string follows a # fmt: off comment inside brackets (#5097)
  • Preserve multiline compound statement headers when # fmt: skip is placed on the colon line (#5117)

Preview style

  • Improve heuristics around whether blank lines should appear before, within and after groups of same-name decorated functions (such as @overload groups) in .pyi stub files (#5021)
  • Fix blank lines being removed between a function and a decorated class in .pyi stub files (#5092)
  • Prevent string merger from creating unsplittable long lines when a pragma comment (e.g. # type: ignore) follows the closing bracket (#5096)

Packaging

... (truncated)

Commits

@dependabot dependabot Bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users labels May 19, 2026
@dependabot dependabot Bot requested a review from a team as a code owner May 19, 2026 09:21
@dependabot dependabot Bot requested review from daniel-zullo-frequenz and removed request for a team May 19, 2026 09:21
@dependabot dependabot Bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users labels May 19, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Black Migration

Update: 26.3.1 → 26.5.1

⚠️ Manual Intervention Needed

The migration script exited with a non-zero status. Please review the output above and perform any required manual steps.

After completing the intervention, either remove the tool:black:migration:intervention-pending label or add the tool:black:migration:intervention-done label to signal resolution.

After intervention is marked as completed, this PR still requires manual review, approval, and merge.

Migration output

=== v26.5.1 =========================================================
Source: inline script

Collecting black==26.5.1
  Downloading black-26.5.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (95 kB)
Collecting click>=8.0.0 (from black==26.5.1)
  Downloading click-8.4.0-py3-none-any.whl.metadata (2.6 kB)
Collecting mypy-extensions>=0.4.3 (from black==26.5.1)
  Downloading mypy_extensions-1.1.0-py3-none-any.whl.metadata (1.1 kB)
Collecting packaging>=22.0 (from black==26.5.1)
  Downloading packaging-26.2-py3-none-any.whl.metadata (3.5 kB)
Collecting pathspec>=1.0.0 (from black==26.5.1)
  Downloading pathspec-1.1.1-py3-none-any.whl.metadata (14 kB)
Collecting platformdirs>=2 (from black==26.5.1)
  Downloading platformdirs-4.9.6-py3-none-any.whl.metadata (4.7 kB)
Collecting pytokens~=0.4.0 (from black==26.5.1)
  Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB)
Downloading black-26.5.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 18.1 MB/s  0:00:00
Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (268 kB)
Downloading click-8.4.0-py3-none-any.whl (116 kB)
Downloading mypy_extensions-1.1.0-py3-none-any.whl (5.0 kB)
Downloading packaging-26.2-py3-none-any.whl (100 kB)
Downloading pathspec-1.1.1-py3-none-any.whl (57 kB)
Downloading platformdirs-4.9.6-py3-none-any.whl (21 kB)
Installing collected packages: pytokens, platformdirs, pathspec, packaging, mypy-extensions, click, black

Successfully installed black-26.5.1 click-8.4.0 mypy-extensions-1.1.0 packaging-26.2 pathspec-1.1.1 platformdirs-4.9.6 pytokens-0.4.1
error: cannot format /home/runner/work/frequenz-repo-config-python/frequenz-repo-config-python/cookiecutter/{{cookiecutter.github_repo_name}}/docs/_scripts/mkdocstrings_autoapi.py: Cannot parse for target version Python 3.11: 9:1
    {%- if cookiecutter.type == 'api' %}
    ^
ParseError: bad input
error: cannot format /home/runner/work/frequenz-repo-config-python/frequenz-repo-config-python/cookiecutter/{{cookiecutter.github_repo_name}}/noxfile.py: Cannot parse for target version Python 3.11: 8:29
    nox.configure(RepositoryType.{{cookiecutter.type | upper}})
                                ^
ParseError: bad input
error: cannot format /home/runner/work/frequenz-repo-config-python/frequenz-repo-config-python/cookiecutter/{{cookiecutter.github_repo_name}}/src/frequenz/{{cookiecutter.type}}/{{cookiecutter.name | as_identifier}}/__init__.py: Cannot parse for target version Python 3.11: 8:1
    {%- if cookiecutter.type != "api" %}
    ^
ParseError: bad input
error: cannot format /home/runner/work/frequenz-repo-config-python/frequenz-repo-config-python/cookiecutter/{{cookiecutter.github_repo_name}}/tests/test_{{cookiecutter.name | as_identifier}}.py: Cannot parse for target version Python 3.11: 6:1
    {%- if cookiecutter.type == "api" %}
    ^
ParseError: bad input

Oh no! 💥 💔 💥
94 files left unchanged, 4 files failed to reformat.
Traceback (most recent call last):
  File "/tmp/migrate_v26.5.1.py", line 10, in <module>
    subprocess.run([sys.executable, "-Im", "black", "."], check=True)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.14.5/x64/lib/python3.14/subprocess.py", line 578, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/opt/hostedtoolcache/Python/3.14.5/x64/bin/python3', '-Im', 'black', '.']' returned non-zero exit status 123.



📋 Full migration logs

@github-actions github-actions Bot added tool:black:migration:intervention-pending Migration requires manual intervention tool:black:migration:executed Migration script has been run labels May 19, 2026
Bumps the minor group with 1 update in the / directory: [black](https://github.com/psf/black).


Updates `black` from 26.3.1 to 26.5.1
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@26.3.1...26.5.1)

---
updated-dependencies:
- dependency-name: black
  dependency-version: 26.5.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title build(deps-dev): bump black from 26.3.1 to 26.5.1 in the minor group build(deps-dev): bump black from 26.3.1 to 26.5.1 in the minor group across 1 directory May 19, 2026
@dependabot dependabot Bot force-pushed the dependabot/pip/minor-3d3d116aec branch from dc2c636 to 7d31194 Compare May 19, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) tool:black:migration:executed Migration script has been run tool:black:migration:intervention-pending Migration requires manual intervention type:tech-debt Improves the project without visible changes for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants