Skip to content

Bump black from 25.12.0 to 26.1.0#501

Merged
shsms merged 2 commits intov0.x.xfrom
dependabot/pip/black-26.1.0
Feb 19, 2026
Merged

Bump black from 25.12.0 to 26.1.0#501
shsms merged 2 commits intov0.x.xfrom
dependabot/pip/black-26.1.0

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 1, 2026

Bumps black from 25.12.0 to 26.1.0.

Release notes

Sourced from black's releases.

26.1.0

Highlights

Introduces the 2026 stable style (#4892), stabilizing the following changes:

  • always_one_newline_after_import: Always force one blank line after import statements, except when the line after the import is a comment or an import statement (#4489)
  • fix_fmt_skip_in_one_liners: Fix # fmt: skip behavior on one-liner declarations, such as def foo(): return "mock" # fmt: skip, where previously the declaration would have been incorrectly collapsed (#4800)
  • fix_module_docstring_detection: Fix module docstrings being treated as normal strings if preceded by comments (#4764)
  • fix_type_expansion_split: Fix type expansions split in generic functions (#4777)
  • multiline_string_handling: Make expressions involving multiline strings more compact (#1879)
  • normalize_cr_newlines: Add \r style newlines to the potential newlines to normalize file newlines both from and to (#4710)
  • remove_parens_around_except_types: Remove parentheses around multiple exception types in except and except* without as (#4720)
  • remove_parens_from_assignment_lhs: Remove unnecessary parentheses from the left-hand side of assignments while preserving magic trailing commas and intentional multiline formatting (#4865)
  • standardize_type_comments: Format type comments which have zero or more spaces between # and type: or between type: and value to # type: (value) (#4645)

The following change was not in any previous stable release:

  • Regenerated the _width_table.py and added tests for the Khmer language (#4253)

This release alo bumps pathspec to v1 and fixes inconsistencies with Git's .gitignore logic (#4958). Now, files will be ignored if a pattern matches them, even if the parent directory is directly unignored. For example, Black would previously format exclude/not_this/foo.py with this .gitignore:

exclude/
!exclude/not_this/

Now, exclude/not_this/foo.py will remain ignored. To ensure exclude/not_this/ and all of it's children are included in formatting (and in Git), use this .gitignore:

*/exclude/*
!*/exclude/not_this/

This new behavior matches Git. The leading */ are only necessary if you wish to ignore matching subdirectories (like the previous behavior did), and not just matching root

... (truncated)

Changelog

Sourced from black's changelog.

26.1.0

Highlights

Introduces the 2026 stable style (#4892), stabilizing the following changes:

  • always_one_newline_after_import: Always force one blank line after import statements, except when the line after the import is a comment or an import statement (#4489)
  • fix_fmt_skip_in_one_liners: Fix # fmt: skip behavior on one-liner declarations, such as def foo(): return "mock" # fmt: skip, where previously the declaration would have been incorrectly collapsed (#4800)
  • fix_module_docstring_detection: Fix module docstrings being treated as normal strings if preceded by comments (#4764)
  • fix_type_expansion_split: Fix type expansions split in generic functions (#4777)
  • multiline_string_handling: Make expressions involving multiline strings more compact (#1879)
  • normalize_cr_newlines: Add \r style newlines to the potential newlines to normalize file newlines both from and to (#4710)
  • remove_parens_around_except_types: Remove parentheses around multiple exception types in except and except* without as (#4720)
  • remove_parens_from_assignment_lhs: Remove unnecessary parentheses from the left-hand side of assignments while preserving magic trailing commas and intentional multiline formatting (#4865)
  • standardize_type_comments: Format type comments which have zero or more spaces between # and type: or between type: and value to # type: (value) (#4645)

The following change was not in any previous stable release:

  • Regenerated the _width_table.py and added tests for the Khmer language (#4253)

This release alo bumps pathspec to v1 and fixes inconsistencies with Git's .gitignore logic (#4958). Now, files will be ignored if a pattern matches them, even if the parent directory is directly unignored. For example, Black would previously format exclude/not_this/foo.py with this .gitignore:

exclude/
!exclude/not_this/

Now, exclude/not_this/foo.py will remain ignored. To ensure exclude/not_this/ and all of it's children are included in formatting (and in Git), use this .gitignore:

*/exclude/*
!*/exclude/not_this/

This new behavior matches Git. The leading */ are only necessary if you wish to ignore

... (truncated)

Commits

Dependabot compatibility score

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

@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 Feb 1, 2026
@dependabot dependabot bot requested a review from a team as a code owner February 1, 2026 03:34
@dependabot dependabot bot added the type:tech-debt Improves the project without visible changes for users label Feb 1, 2026
@dependabot dependabot bot requested review from daniel-zullo-frequenz and removed request for a team February 1, 2026 03:34
@github-actions github-actions bot added the tool:auto-merged Auto-approved Dependabot PRs label Feb 1, 2026
github-actions[bot]
github-actions bot previously approved these changes Feb 1, 2026
@github-actions github-actions bot enabled auto-merge February 1, 2026 03:34
@github-actions github-actions bot added part:nox Affects the configuration of nox part:mkdocs Affects the configuration of mkdocs labels Feb 18, 2026
@llucax llucax force-pushed the dependabot/pip/black-26.1.0 branch from ff69603 to a550bac Compare February 18, 2026 14:18
@llucax llucax added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Feb 18, 2026
@llucax
Copy link
Contributor

llucax commented Feb 18, 2026

@daniel-zullo-frequenz ping, I fixed the black failures, this now needs an approval from other than me to be merged.

dependabot bot and others added 2 commits February 18, 2026 20:35
Bumps [black](https://github.com/psf/black) from 25.12.0 to 26.1.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@25.12.0...26.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@daniel-zullo-frequenz
Copy link
Contributor

@dependabot rebase

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Feb 18, 2026

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

@github-actions github-actions bot added this pull request to the merge queue Feb 18, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 18, 2026
Bumps [black](https://github.com/psf/black) from 25.12.0 to 26.1.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/psf/black/releases">black's
releases</a>.</em></p>
<blockquote>
<h2>26.1.0</h2>
<h3>Highlights</h3>
<p>Introduces the 2026 stable style (<a
href="https://redirect.github.com/psf/black/issues/4892">#4892</a>),
stabilizing the following changes:</p>
<ul>
<li><code>always_one_newline_after_import</code>: Always force one blank
line after import
statements, except when the line after the import is a comment or an
import statement
(<a
href="https://redirect.github.com/psf/black/issues/4489">#4489</a>)</li>
<li><code>fix_fmt_skip_in_one_liners</code>: Fix <code># fmt:
skip</code> behavior on one-liner declarations,
such as <code>def foo(): return &quot;mock&quot; # fmt: skip</code>,
where previously the declaration would
have been incorrectly collapsed (<a
href="https://redirect.github.com/psf/black/issues/4800">#4800</a>)</li>
<li><code>fix_module_docstring_detection</code>: Fix module docstrings
being treated as normal
strings if preceded by comments (<a
href="https://redirect.github.com/psf/black/issues/4764">#4764</a>)</li>
<li><code>fix_type_expansion_split</code>: Fix type expansions split in
generic functions (<a
href="https://redirect.github.com/psf/black/issues/4777">#4777</a>)</li>
<li><code>multiline_string_handling</code>: Make expressions involving
multiline strings more compact
(<a
href="https://redirect.github.com/psf/black/issues/1879">#1879</a>)</li>
<li><code>normalize_cr_newlines</code>: Add <code>\r</code> style
newlines to the potential newlines to
normalize file newlines both from and to (<a
href="https://redirect.github.com/psf/black/issues/4710">#4710</a>)</li>
<li><code>remove_parens_around_except_types</code>: Remove parentheses
around multiple exception
types in <code>except</code> and <code>except*</code> without
<code>as</code> (<a
href="https://redirect.github.com/psf/black/issues/4720">#4720</a>)</li>
<li><code>remove_parens_from_assignment_lhs</code>: Remove unnecessary
parentheses from the left-hand
side of assignments while preserving magic trailing commas and
intentional multiline
formatting (<a
href="https://redirect.github.com/psf/black/issues/4865">#4865</a>)</li>
<li><code>standardize_type_comments</code>: Format type comments which
have zero or more spaces
between <code>#</code> and <code>type:</code> or between
<code>type:</code> and value to <code># type: (value)</code> (<a
href="https://redirect.github.com/psf/black/issues/4645">#4645</a>)</li>
</ul>
<p>The following change was not in any previous stable release:</p>
<ul>
<li>Regenerated the <code>_width_table.py</code> and added tests for the
Khmer language (<a
href="https://redirect.github.com/psf/black/issues/4253">#4253</a>)</li>
</ul>
<p>This release alo bumps <code>pathspec</code> to v1 and fixes
inconsistencies with Git's
<code>.gitignore</code> logic (<a
href="https://redirect.github.com/psf/black/issues/4958">#4958</a>).
Now, files will be ignored if a pattern matches them, even
if the parent directory is directly unignored. For example, Black would
previously
format <code>exclude/not_this/foo.py</code> with this
<code>.gitignore</code>:</p>
<pre><code>exclude/
!exclude/not_this/
</code></pre>
<p>Now, <code>exclude/not_this/foo.py</code> will remain ignored. To
ensure <code>exclude/not_this/</code> and
all of it's children are included in formatting (and in Git), use this
<code>.gitignore</code>:</p>
<pre><code>*/exclude/*
!*/exclude/not_this/
</code></pre>
<p>This new behavior matches Git. The leading <code>*/</code> are only
necessary if you wish to ignore
matching subdirectories (like the previous behavior did), and not just
matching root</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/psf/black/blob/main/CHANGES.md">black's
changelog</a>.</em></p>
<blockquote>
<h2>26.1.0</h2>
<h3>Highlights</h3>
<p>Introduces the 2026 stable style (<a
href="https://redirect.github.com/psf/black/issues/4892">#4892</a>),
stabilizing the following changes:</p>
<ul>
<li><code>always_one_newline_after_import</code>: Always force one blank
line after import
statements, except when the line after the import is a comment or an
import statement
(<a
href="https://redirect.github.com/psf/black/issues/4489">#4489</a>)</li>
<li><code>fix_fmt_skip_in_one_liners</code>: Fix <code># fmt:
skip</code> behavior on one-liner declarations,
such as <code>def foo(): return &quot;mock&quot; # fmt: skip</code>,
where previously the declaration would
have been incorrectly collapsed (<a
href="https://redirect.github.com/psf/black/issues/4800">#4800</a>)</li>
<li><code>fix_module_docstring_detection</code>: Fix module docstrings
being treated as normal
strings if preceded by comments (<a
href="https://redirect.github.com/psf/black/issues/4764">#4764</a>)</li>
<li><code>fix_type_expansion_split</code>: Fix type expansions split in
generic functions (<a
href="https://redirect.github.com/psf/black/issues/4777">#4777</a>)</li>
<li><code>multiline_string_handling</code>: Make expressions involving
multiline strings more compact
(<a
href="https://redirect.github.com/psf/black/issues/1879">#1879</a>)</li>
<li><code>normalize_cr_newlines</code>: Add <code>\r</code> style
newlines to the potential newlines to
normalize file newlines both from and to (<a
href="https://redirect.github.com/psf/black/issues/4710">#4710</a>)</li>
<li><code>remove_parens_around_except_types</code>: Remove parentheses
around multiple exception
types in <code>except</code> and <code>except*</code> without
<code>as</code> (<a
href="https://redirect.github.com/psf/black/issues/4720">#4720</a>)</li>
<li><code>remove_parens_from_assignment_lhs</code>: Remove unnecessary
parentheses from the left-hand
side of assignments while preserving magic trailing commas and
intentional multiline
formatting (<a
href="https://redirect.github.com/psf/black/issues/4865">#4865</a>)</li>
<li><code>standardize_type_comments</code>: Format type comments which
have zero or more spaces
between <code>#</code> and <code>type:</code> or between
<code>type:</code> and value to <code># type: (value)</code> (<a
href="https://redirect.github.com/psf/black/issues/4645">#4645</a>)</li>
</ul>
<p>The following change was not in any previous stable release:</p>
<ul>
<li>Regenerated the <code>_width_table.py</code> and added tests for the
Khmer language (<a
href="https://redirect.github.com/psf/black/issues/4253">#4253</a>)</li>
</ul>
<p>This release alo bumps <code>pathspec</code> to v1 and fixes
inconsistencies with Git's
<code>.gitignore</code> logic (<a
href="https://redirect.github.com/psf/black/issues/4958">#4958</a>).
Now, files will be ignored if a pattern matches them, even
if the parent directory is directly unignored. For example, Black would
previously
format <code>exclude/not_this/foo.py</code> with this
<code>.gitignore</code>:</p>
<pre><code>exclude/
!exclude/not_this/
</code></pre>
<p>Now, <code>exclude/not_this/foo.py</code> will remain ignored. To
ensure <code>exclude/not_this/</code> and
all of it's children are included in formatting (and in Git), use this
<code>.gitignore</code>:</p>
<pre><code>*/exclude/*
!*/exclude/not_this/
</code></pre>
<p>This new behavior matches Git. The leading <code>*/</code> are only
necessary if you wish to ignore</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/psf/black/commit/6305bf1ae645ab7541be4f5028a86239316178eb"><code>6305bf1</code></a>
Prepare 2026.1.0 release (<a
href="https://redirect.github.com/psf/black/issues/4892">#4892</a>)</li>
<li><a
href="https://github.com/psf/black/commit/e71305bee302f7f9016b228361e5ae69669dca7b"><code>e71305b</code></a>
Bump pypa/cibuildwheel from 3.3.0 to 3.3.1 (<a
href="https://redirect.github.com/psf/black/issues/4961">#4961</a>)</li>
<li><a
href="https://github.com/psf/black/commit/21a2a8c2b1d0c8d47bc00cc59591470f6a9e2307"><code>21a2a8c</code></a>
Fix Shutdown multiprocessing Manager in schedule_formatting (<a
href="https://redirect.github.com/psf/black/issues/4952">#4952</a>)</li>
<li><a
href="https://github.com/psf/black/commit/e3146cea4245fcee29d007cb45d9faaf63271586"><code>e3146ce</code></a>
Bump docker/setup-buildx-action from 3.11.1 to 3.12.0 (<a
href="https://redirect.github.com/psf/black/issues/4919">#4919</a>)</li>
<li><a
href="https://github.com/psf/black/commit/fe1fbc4fdfa03fa1d460f975b8aca77e4b4f1a4a"><code>fe1fbc4</code></a>
Bump actions/upload-artifact from 5.0.0 to 6.0.0 (<a
href="https://redirect.github.com/psf/black/issues/4923">#4923</a>)</li>
<li><a
href="https://github.com/psf/black/commit/2b4b7fcfe00bb0d99322e07e87fc2f0992f7a4d8"><code>2b4b7fc</code></a>
Bump actions/download-artifact from 6.0.0 to 7.0.0 (<a
href="https://redirect.github.com/psf/black/issues/4922">#4922</a>)</li>
<li><a
href="https://github.com/psf/black/commit/d745be69bfa9d85ec2ef6e5f9b7ec7e253b5e8ab"><code>d745be6</code></a>
docs: document --force-exclude for pre-commit workflows (<a
href="https://redirect.github.com/psf/black/issues/4957">#4957</a>)</li>
<li><a
href="https://github.com/psf/black/commit/b41acd6ebbe76e18b49286166924f73f01c3fd02"><code>b41acd6</code></a>
Various CI and doc refactors (<a
href="https://redirect.github.com/psf/black/issues/4928">#4928</a>)</li>
<li><a
href="https://github.com/psf/black/commit/6f43612766da4a2f275b575af0802c3e73b6ed83"><code>6f43612</code></a>
Handle pathspec v1 changes (<a
href="https://redirect.github.com/psf/black/issues/4958">#4958</a>)</li>
<li><a
href="https://github.com/psf/black/commit/200c550aff44372f801a6d826a361cb26f45a504"><code>200c550</code></a>
Bump furo from 2025.9.25 to 2025.12.19 in /docs (<a
href="https://redirect.github.com/psf/black/issues/4933">#4933</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/psf/black/compare/25.12.0...26.1.0">compare
view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=black&package-manager=pip&previous-version=25.12.0&new-version=26.1.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@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)

</details>
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 18, 2026
@shsms shsms added this pull request to the merge queue Feb 19, 2026
Merged via the queue into v0.x.x with commit eae6c3f Feb 19, 2026
9 checks passed
@shsms shsms deleted the dependabot/pip/black-26.1.0 branch February 19, 2026 06:46
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:mkdocs Affects the configuration of mkdocs part:nox Affects the configuration of nox part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) tool:auto-merged Auto-approved Dependabot PRs type:tech-debt Improves the project without visible changes for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments