Skip to content

Build(deps-dev): Bump black from 25.9.0 to 26.3.1#130

Merged
llucax merged 2 commits intov1.x.xfrom
dependabot/pip/black-26.3.1
May 8, 2026
Merged

Build(deps-dev): Bump black from 25.9.0 to 26.3.1#130
llucax merged 2 commits intov1.x.xfrom
dependabot/pip/black-26.3.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Mar 27, 2026

Bumps black from 25.9.0 to 26.3.1.

Release notes

Sourced from black's releases.

26.3.1

Stable style

  • Prevent Jupyter notebook magic masking collisions from corrupting cells by using exact-length placeholders for short magics and aborting if a placeholder can no longer be unmasked safely (#5038)

Configuration

  • Always hash cache filename components derived from --python-cell-magics so custom magic names cannot affect cache paths (#5038)

Blackd

  • Disable browser-originated requests by default, add configurable origin allowlisting and request body limits, and bound executor submissions to improve backpressure (#5039)

26.3.0

Stable style

  • Don't double-decode input, causing non-UTF-8 files to be corrupted (#4964)
  • Fix crash on standalone comment in lambda default arguments (#4993)
  • Preserve parentheses when # type: ignore comments would be merged with other comments on the same line, preventing AST equivalence failures (#4888)

Preview style

  • Fix bug where if guards in case blocks were incorrectly split when the pattern had a trailing comma (#4884)
  • Fix string_processing crashing on unassigned long string literals with trailing commas (one-item tuples) (#4929)
  • Simplify implementation of the power operator "hugging" logic (#4918)

Packaging

  • Fix shutdown errors in PyInstaller builds on macOS by disabling multiprocessing in frozen environments (#4930)

Performance

  • Introduce winloop for windows as an alternative to uvloop (#4996)
  • Remove deprecated function uvloop.install() in favor of uvloop.new_event_loop() (#4996)
  • Rename maybe_install_uvloop function to maybe_use_uvloop to simplify loop installation and creation of either a uvloop/winloop evenloop or default eventloop (#4996)

Output

... (truncated)

Changelog

Sourced from black's changelog.

Version 26.3.1

Stable style

  • Prevent Jupyter notebook magic masking collisions from corrupting cells by using exact-length placeholders for short magics and aborting if a placeholder can no longer be unmasked safely (#5038)

Configuration

  • Always hash cache filename components derived from --python-cell-magics so custom magic names cannot affect cache paths (#5038)

Blackd

  • Disable browser-originated requests by default, add configurable origin allowlisting and request body limits, and bound executor submissions to improve backpressure (#5039)

Version 26.3.0

Stable style

  • Don't double-decode input, causing non-UTF-8 files to be corrupted (#4964)
  • Fix crash on standalone comment in lambda default arguments (#4993)
  • Preserve parentheses when # type: ignore comments would be merged with other comments on the same line, preventing AST equivalence failures (#4888)

Preview style

  • Fix bug where if guards in case blocks were incorrectly split when the pattern had a trailing comma (#4884)
  • Fix string_processing crashing on unassigned long string literals with trailing commas (one-item tuples) (#4929)
  • Simplify implementation of the power operator "hugging" logic (#4918)

Packaging

  • Fix shutdown errors in PyInstaller builds on macOS by disabling multiprocessing in frozen environments (#4930)

Performance

  • Introduce winloop for windows as an alternative to uvloop (#4996)
  • Remove deprecated function uvloop.install() in favor of uvloop.new_event_loop() (#4996)
  • Rename maybe_install_uvloop function to maybe_use_uvloop to simplify loop installation and creation of either a uvloop/winloop eventloop or default eventloop (#4996)

... (truncated)

Commits

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@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 Mar 27, 2026
@dependabot dependabot Bot requested a review from a team as a code owner March 27, 2026 12:00
@dependabot dependabot Bot added the part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) label Mar 27, 2026
@dependabot dependabot Bot requested review from ela-kotulska-frequenz and removed request for a team March 27, 2026 12:00
@dependabot dependabot Bot added the type:tech-debt Improves the project without visible changes for users label Mar 27, 2026
@github-actions github-actions Bot added the tool:auto-merged Auto-approved Dependabot PRs label Mar 27, 2026
github-actions[bot]
github-actions Bot previously approved these changes Mar 27, 2026
@github-actions github-actions Bot enabled auto-merge March 27, 2026 12:03
@llucax

This comment was marked as outdated.

@dependabot dependabot Bot force-pushed the dependabot/pip/black-26.3.1 branch from a41f2c6 to 26dc8aa Compare May 7, 2026 19:45
@llucax

This comment was marked as outdated.

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

---
updated-dependencies:
- dependency-name: black
  dependency-version: 26.3.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/black-26.3.1 branch from 26dc8aa to 19d2817 Compare May 8, 2026 09:25
=== v26.3.1 =========================================================
Source: inline script

Collecting black==26.3.1
  Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (91 kB)
Collecting click>=8.0.0 (from black==26.3.1)
  Downloading click-8.3.3-py3-none-any.whl.metadata (2.6 kB)
Collecting mypy-extensions>=0.4.3 (from black==26.3.1)
  Downloading mypy_extensions-1.1.0-py3-none-any.whl.metadata (1.1 kB)
Collecting packaging>=22.0 (from black==26.3.1)
  Downloading packaging-26.2-py3-none-any.whl.metadata (3.5 kB)
Collecting pathspec>=1.0.0 (from black==26.3.1)
  Downloading pathspec-1.1.1-py3-none-any.whl.metadata (14 kB)
Collecting platformdirs>=2 (from black==26.3.1)
  Downloading platformdirs-4.9.6-py3-none-any.whl.metadata (4.7 kB)
Collecting pytokens~=0.4.0 (from black==26.3.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.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 154.4 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.3.3-py3-none-any.whl (110 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.3.1 click-8.3.3 mypy-extensions-1.1.0 packaging-26.2 pathspec-1.1.1 platformdirs-4.9.6 pytokens-0.4.1

[notice] A new release of pip is available: 26.0.1 -> 26.1.1
[notice] To update, run: pip install --upgrade pip
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/__init__.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_current.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_percentage.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_frequency.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_energy.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_temperature.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_power.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_voltage.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_reactive_power.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/tests/experimental/test_marshmallow.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_quantity.py

All done! ✨ 🍰 ✨
11 files reformatted, 7 files left unchanged.



The migration completed successfully.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Black Migration

Update: 25.9.0 → 26.3.1

✅ Migration completed successfully.

Migration output
=== v26.3.1 =========================================================
Source: inline script

Collecting black==26.3.1
  Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (91 kB)
Collecting click>=8.0.0 (from black==26.3.1)
  Downloading click-8.3.3-py3-none-any.whl.metadata (2.6 kB)
Collecting mypy-extensions>=0.4.3 (from black==26.3.1)
  Downloading mypy_extensions-1.1.0-py3-none-any.whl.metadata (1.1 kB)
Collecting packaging>=22.0 (from black==26.3.1)
  Downloading packaging-26.2-py3-none-any.whl.metadata (3.5 kB)
Collecting pathspec>=1.0.0 (from black==26.3.1)
  Downloading pathspec-1.1.1-py3-none-any.whl.metadata (14 kB)
Collecting platformdirs>=2 (from black==26.3.1)
  Downloading platformdirs-4.9.6-py3-none-any.whl.metadata (4.7 kB)
Collecting pytokens~=0.4.0 (from black==26.3.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.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 154.4 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.3.3-py3-none-any.whl (110 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.3.1 click-8.3.3 mypy-extensions-1.1.0 packaging-26.2 pathspec-1.1.1 platformdirs-4.9.6 pytokens-0.4.1

[notice] A new release of pip is available: 26.0.1 -> 26.1.1
[notice] To update, run: pip install --upgrade pip
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/__init__.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_current.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_percentage.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_frequency.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_energy.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_temperature.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_power.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_voltage.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_reactive_power.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/tests/experimental/test_marshmallow.py
reformatted /home/runner/work/frequenz-quantities-python/frequenz-quantities-python/src/frequenz/quantities/_quantity.py

All done! ✨ 🍰 ✨
11 files reformatted, 7 files left unchanged.


Next step

Migration changes were committed and auto-merge-on-changes is disabled. Please review, approve, and merge this PR manually.


📋 Full migration logs

@github-actions github-actions Bot added tool:black:migration:executed Migration script has been run part:tests Affects the unit, integration and performance (benchmarks) tests part:code Affects the code in general labels May 8, 2026
@llucax llucax added the cmd:skip-release-notes It is not necessary to update release notes for this PR label May 8, 2026
@github-actions github-actions Bot added this pull request to the merge queue May 8, 2026
@llucax

This comment was marked as outdated.

@dependabot @github

This comment was marked as outdated.

@llucax llucax removed this pull request from the merge queue due to a manual request May 8, 2026
@llucax llucax added this pull request to the merge queue May 8, 2026
Merged via the queue into v1.x.x with commit 6461932 May 8, 2026
14 of 15 checks passed
@llucax llucax deleted the dependabot/pip/black-26.3.1 branch May 8, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:code Affects the code in general part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) tool:auto-merged Auto-approved Dependabot PRs tool:black:migration:executed Migration script has been run type:tech-debt Improves the project without visible changes for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant