Skip to content

Commit

Permalink
Bump black from 24.10.0 to 25.1.0 (#739)
Browse files Browse the repository at this point in the history
Bumps [black](https://github.com/psf/black) from 24.10.0 to 25.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>25.1.0</h2>
<h3>Highlights</h3>
<p>This release introduces the new 2025 stable style (<a
href="https://redirect.github.com/psf/black/issues/4558">#4558</a>),
stabilizing
the following changes:</p>
<ul>
<li>Normalize casing of Unicode escape characters in strings to
lowercase (<a
href="https://redirect.github.com/psf/black/issues/2916">#2916</a>)</li>
<li>Fix inconsistencies in whether certain strings are detected as
docstrings (<a
href="https://redirect.github.com/psf/black/issues/4095">#4095</a>)</li>
<li>Consistently add trailing commas to typed function parameters (<a
href="https://redirect.github.com/psf/black/issues/4164">#4164</a>)</li>
<li>Remove redundant parentheses in if guards for case blocks (<a
href="https://redirect.github.com/psf/black/issues/4214">#4214</a>)</li>
<li>Add parentheses to if clauses in case blocks when the line is too
long (<a
href="https://redirect.github.com/psf/black/issues/4269">#4269</a>)</li>
<li>Whitespace before <code># fmt: skip</code> comments is no longer
normalized (<a
href="https://redirect.github.com/psf/black/issues/4146">#4146</a>)</li>
<li>Fix line length computation for certain expressions that involve the
power operator (<a
href="https://redirect.github.com/psf/black/issues/4154">#4154</a>)</li>
<li>Check if there is a newline before the terminating quotes of a
docstring (<a
href="https://redirect.github.com/psf/black/issues/4185">#4185</a>)</li>
<li>Fix type annotation spacing between <code>*</code> and more complex
type variable tuple (<a
href="https://redirect.github.com/psf/black/issues/4440">#4440</a>)</li>
</ul>
<p>The following changes were not in any previous release:</p>
<ul>
<li>Remove parentheses around sole list items (<a
href="https://redirect.github.com/psf/black/issues/4312">#4312</a>)</li>
<li>Generic function definitions are now formatted more elegantly:
parameters are
split over multiple lines first instead of type parameter definitions
(<a
href="https://redirect.github.com/psf/black/issues/4553">#4553</a>)</li>
</ul>
<h3>Stable style</h3>
<ul>
<li>Fix formatting cells in IPython notebooks with magic methods and
starting or trailing
empty lines (<a
href="https://redirect.github.com/psf/black/issues/4484">#4484</a>)</li>
<li>Fix crash when formatting <code>with</code> statements containing
tuple generators/unpacking
(<a
href="https://redirect.github.com/psf/black/issues/4538">#4538</a>)</li>
</ul>
<h3>Preview style</h3>
<ul>
<li>Fix/remove string merging changing f-string quotes on f-strings with
internal quotes
(<a
href="https://redirect.github.com/psf/black/issues/4498">#4498</a>)</li>
<li>Collapse multiple empty lines after an import into one (<a
href="https://redirect.github.com/psf/black/issues/4489">#4489</a>)</li>
<li>Prevent <code>string_processing</code> and
<code>wrap_long_dict_values_in_parens</code> from removing
parentheses around long dictionary values (<a
href="https://redirect.github.com/psf/black/issues/4377">#4377</a>)</li>
<li>Move <code>wrap_long_dict_values_in_parens</code> from the unstable
to preview style (<a
href="https://redirect.github.com/psf/black/issues/4561">#4561</a>)</li>
</ul>
<h3>Packaging</h3>
<ul>
<li>Store license identifier inside the <code>License-Expression</code>
metadata field, see
<a href="https://peps.python.org/pep-0639/">PEP 639</a>. (<a
href="https://redirect.github.com/psf/black/issues/4479">#4479</a>)</li>
</ul>
<h3>Performance</h3>
<ul>
<li>Speed up the <code>is_fstring_start</code> function in Black's
tokenizer (<a
href="https://redirect.github.com/psf/black/issues/4541">#4541</a>)</li>
</ul>
<h3>Integrations</h3>
<ul>
<li>If using stdin with <code>--stdin-filename</code> set to a force
excluded path, stdin won't be</li>
</ul>
<!-- 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>25.1.0</h2>
<h3>Highlights</h3>
<p>This release introduces the new 2025 stable style (<a
href="https://redirect.github.com/psf/black/issues/4558">#4558</a>),
stabilizing
the following changes:</p>
<ul>
<li>Normalize casing of Unicode escape characters in strings to
lowercase (<a
href="https://redirect.github.com/psf/black/issues/2916">#2916</a>)</li>
<li>Fix inconsistencies in whether certain strings are detected as
docstrings (<a
href="https://redirect.github.com/psf/black/issues/4095">#4095</a>)</li>
<li>Consistently add trailing commas to typed function parameters (<a
href="https://redirect.github.com/psf/black/issues/4164">#4164</a>)</li>
<li>Remove redundant parentheses in if guards for case blocks (<a
href="https://redirect.github.com/psf/black/issues/4214">#4214</a>)</li>
<li>Add parentheses to if clauses in case blocks when the line is too
long (<a
href="https://redirect.github.com/psf/black/issues/4269">#4269</a>)</li>
<li>Whitespace before <code># fmt: skip</code> comments is no longer
normalized (<a
href="https://redirect.github.com/psf/black/issues/4146">#4146</a>)</li>
<li>Fix line length computation for certain expressions that involve the
power operator (<a
href="https://redirect.github.com/psf/black/issues/4154">#4154</a>)</li>
<li>Check if there is a newline before the terminating quotes of a
docstring (<a
href="https://redirect.github.com/psf/black/issues/4185">#4185</a>)</li>
<li>Fix type annotation spacing between <code>*</code> and more complex
type variable tuple (<a
href="https://redirect.github.com/psf/black/issues/4440">#4440</a>)</li>
</ul>
<p>The following changes were not in any previous release:</p>
<ul>
<li>Remove parentheses around sole list items (<a
href="https://redirect.github.com/psf/black/issues/4312">#4312</a>)</li>
<li>Generic function definitions are now formatted more elegantly:
parameters are
split over multiple lines first instead of type parameter definitions
(<a
href="https://redirect.github.com/psf/black/issues/4553">#4553</a>)</li>
</ul>
<h3>Stable style</h3>
<ul>
<li>Fix formatting cells in IPython notebooks with magic methods and
starting or trailing
empty lines (<a
href="https://redirect.github.com/psf/black/issues/4484">#4484</a>)</li>
<li>Fix crash when formatting <code>with</code> statements containing
tuple generators/unpacking
(<a
href="https://redirect.github.com/psf/black/issues/4538">#4538</a>)</li>
</ul>
<h3>Preview style</h3>
<ul>
<li>Fix/remove string merging changing f-string quotes on f-strings with
internal quotes
(<a
href="https://redirect.github.com/psf/black/issues/4498">#4498</a>)</li>
<li>Collapse multiple empty lines after an import into one (<a
href="https://redirect.github.com/psf/black/issues/4489">#4489</a>)</li>
<li>Prevent <code>string_processing</code> and
<code>wrap_long_dict_values_in_parens</code> from removing
parentheses around long dictionary values (<a
href="https://redirect.github.com/psf/black/issues/4377">#4377</a>)</li>
<li>Move <code>wrap_long_dict_values_in_parens</code> from the unstable
to preview style (<a
href="https://redirect.github.com/psf/black/issues/4561">#4561</a>)</li>
</ul>
<h3>Packaging</h3>
<ul>
<li>Store license identifier inside the <code>License-Expression</code>
metadata field, see
<a href="https://peps.python.org/pep-0639/">PEP 639</a>. (<a
href="https://redirect.github.com/psf/black/issues/4479">#4479</a>)</li>
</ul>
<h3>Performance</h3>
<ul>
<li>Speed up the <code>is_fstring_start</code> function in Black's
tokenizer (<a
href="https://redirect.github.com/psf/black/issues/4541">#4541</a>)</li>
</ul>
<h3>Integrations</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/psf/black/commit/8a737e727ac5ab2f1d4cf5876720ed276dc8dc4b"><code>8a737e7</code></a>
Prepare release 25.1.0 (<a
href="https://redirect.github.com/psf/black/issues/4563">#4563</a>)</li>
<li><a
href="https://github.com/psf/black/commit/d330deea00e199b99dea59fb4643305408c19a9b"><code>d330dee</code></a>
docs: We're not going to use backslashes for the with statement (<a
href="https://redirect.github.com/psf/black/issues/4564">#4564</a>)</li>
<li><a
href="https://github.com/psf/black/commit/3d8129001f13e8c1a50eb73d8f44d26ad48f9c8c"><code>3d81290</code></a>
Move <code>wrap_long_dict_values_in_parens</code> to the preview style
(<a
href="https://redirect.github.com/psf/black/issues/4561">#4561</a>)</li>
<li><a
href="https://github.com/psf/black/commit/459562c71a725a0a58a7cb710bd4b68417df4496"><code>459562c</code></a>
Improve function declaration wrapping when it contains generic type
definitio...</li>
<li><a
href="https://github.com/psf/black/commit/99dbf3006b30dd77a0f650b25d9b1c8071f25e1e"><code>99dbf30</code></a>
Cache executor to avoid hitting open file limits (<a
href="https://redirect.github.com/psf/black/issues/4560">#4560</a>)</li>
<li><a
href="https://github.com/psf/black/commit/c0b92f3888a004b95e4626d8007a4b259b8f444f"><code>c0b92f3</code></a>
Prepare the 2025 stable style (<a
href="https://redirect.github.com/psf/black/issues/4558">#4558</a>)</li>
<li><a
href="https://github.com/psf/black/commit/e58baf15b99e0202f10bda09447d3eb246e88df9"><code>e58baf1</code></a>
Add test for <a
href="https://redirect.github.com/psf/black/issues/1187">#1187</a> (<a
href="https://redirect.github.com/psf/black/issues/4559">#4559</a>)</li>
<li><a
href="https://github.com/psf/black/commit/1455ae47311facfaf3ad62d2c223d86ae95c5c68"><code>1455ae4</code></a>
Fix docs CI (<a
href="https://redirect.github.com/psf/black/issues/4555">#4555</a>)</li>
<li><a
href="https://github.com/psf/black/commit/584d0331c8a73785af8a78fa601c540f5fe7bea2"><code>584d033</code></a>
fix: Don't remove parenthesis around long dictionary values (<a
href="https://redirect.github.com/psf/black/issues/4377">#4377</a>)</li>
<li><a
href="https://github.com/psf/black/commit/6e9654065ca5e4b7c7a9491431a6cd7bc4016da3"><code>6e96540</code></a>
Fix CI (<a
href="https://redirect.github.com/psf/black/issues/4551">#4551</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/psf/black/compare/24.10.0...25.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=24.10.0&new-version=25.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>
  • Loading branch information
dependabot[bot] authored Jan 30, 2025
1 parent e37a402 commit c9e8ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-e .
backports.asyncio.runner==1.1.0; python_version < "3.11"
black==24.10.0
black==25.1.0
bandit==1.8.2
coverage==7.6.10
docutils==0.21.2
Expand Down

0 comments on commit c9e8ee1

Please sign in to comment.