Commit ff6d6d2
authored
chore(deps-dev): bump black from 25.12.0 to 26.1.0 (#214)
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 "mock" # 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 "mock" # 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 />
[](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>1 parent 222ce46 commit ff6d6d2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments