Skip to content

Bump black from 25.9.0 to 26.3.1#150

Merged
frequenz-auto-dependabot[bot] merged 2 commits intov1.x.xfrom
dependabot/pip/black-26.3.1
Mar 31, 2026
Merged

Bump black from 25.9.0 to 26.3.1#150
frequenz-auto-dependabot[bot] 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

@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 11:42
@dependabot dependabot bot requested review from llucax and removed request for a team March 27, 2026 11:42
@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
@frequenz-auto-dependabot frequenz-auto-dependabot bot added the tool:auto-merged Auto-approved Dependabot PRs label Mar 27, 2026
@llucax llucax requested a review from shsms March 27, 2026 14:02
@github-actions github-actions bot added part:tests Affects the unit, integration and performance (benchmarks) tests part:math Affects the math module part:module Affects the module module part:id Affects the id module labels Mar 27, 2026
@llucax llucax added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Mar 27, 2026
@llucax
Copy link
Copy Markdown
Contributor

llucax commented Mar 27, 2026

Added a commit to reformat using the new black version. Needs approval from someone else.

@llucax
Copy link
Copy Markdown
Contributor

llucax commented Mar 30, 2026

@dependabot recreate

@dependabot dependabot bot force-pushed the dependabot/pip/black-26.3.1 branch from 5b3b057 to c58e7fb Compare March 30, 2026 11:14
@llucax
Copy link
Copy Markdown
Contributor

llucax commented Mar 31, 2026

@dependabot rebase

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 c58e7fb to 72f47e1 Compare March 31, 2026 16:45
=== 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.1-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.0-py3-none-any.whl.metadata (3.3 kB)
Collecting pathspec>=1.0.0 (from black==26.3.1)
  Downloading pathspec-1.0.4-py3-none-any.whl.metadata (13 kB)
Collecting platformdirs>=2 (from black==26.3.1)
  Downloading platformdirs-4.9.4-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 8.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.1-py3-none-any.whl (108 kB)
Downloading mypy_extensions-1.1.0-py3-none-any.whl (5.0 kB)
Downloading packaging-26.0-py3-none-any.whl (74 kB)
Downloading pathspec-1.0.4-py3-none-any.whl (55 kB)
Downloading platformdirs-4.9.4-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.1 mypy-extensions-1.1.0 packaging-26.0 pathspec-1.0.4 platformdirs-4.9.4 pytokens-0.4.1
reformatted /home/runner/work/frequenz-core-python/frequenz-core-python/src/frequenz/core/id.py
reformatted /home/runner/work/frequenz-core-python/frequenz-core-python/tests/test_module.py
reformatted /home/runner/work/frequenz-core-python/frequenz-core-python/tests/math/test_interval.py

All done! ✨ 🍰 ✨
3 files reformatted, 13 files left unchanged.



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

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.1-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.0-py3-none-any.whl.metadata (3.3 kB)
Collecting pathspec>=1.0.0 (from black==26.3.1)
  Downloading pathspec-1.0.4-py3-none-any.whl.metadata (13 kB)
Collecting platformdirs>=2 (from black==26.3.1)
  Downloading platformdirs-4.9.4-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 8.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.1-py3-none-any.whl (108 kB)
Downloading mypy_extensions-1.1.0-py3-none-any.whl (5.0 kB)
Downloading packaging-26.0-py3-none-any.whl (74 kB)
Downloading pathspec-1.0.4-py3-none-any.whl (55 kB)
Downloading platformdirs-4.9.4-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.1 mypy-extensions-1.1.0 packaging-26.0 pathspec-1.0.4 platformdirs-4.9.4 pytokens-0.4.1
reformatted /home/runner/work/frequenz-core-python/frequenz-core-python/src/frequenz/core/id.py
reformatted /home/runner/work/frequenz-core-python/frequenz-core-python/tests/test_module.py
reformatted /home/runner/work/frequenz-core-python/frequenz-core-python/tests/math/test_interval.py

All done! ✨ 🍰 ✨
3 files reformatted, 13 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 the tool:black:migration:executed Migration script has been run label Mar 31, 2026
@frequenz-auto-dependabot frequenz-auto-dependabot bot added this pull request to the merge queue Mar 31, 2026
Merged via the queue into v1.x.x with commit 0c59d55 Mar 31, 2026
11 checks passed
@frequenz-auto-dependabot frequenz-auto-dependabot bot deleted the dependabot/pip/black-26.3.1 branch March 31, 2026 16:53
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:id Affects the id module part:math Affects the math module part:module Affects the module module 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