Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 2, 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 dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code labels Feb 2, 2026
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

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>
@dependabot dependabot bot force-pushed the dependabot/uv/master/black-26.1.0 branch from e7043ce to bba8dee Compare February 2, 2026 18:58
@jychp jychp merged commit 018354b into master Feb 2, 2026
8 checks passed
@jychp jychp deleted the dependabot/uv/master/black-26.1.0 branch February 2, 2026 19:06
jychp pushed a commit that referenced this pull request Feb 2, 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=uv&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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
jychp pushed a commit that referenced this pull request Feb 3, 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=uv&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>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Signed-off-by: Jeremy Chapeau <jeremy@subimage.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python:uv Pull requests that update python:uv code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant