Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.
Add support for unpacking in comprehensions (PEP 798) and for lazy imports (PEP 810),
both new syntactic features in Python 3.15 (#5048)
Python 3.15 is now supported. Compiled wheels are not yet provided for Python 3.15, so
performance may be slower than on existing Python versions. Wheels will be provided
once Python 3.15 is later in its release cycle. (#5127)
Stable style
Fix # fmt: skip being ignored in nested if expressions with parenthesized in
clauses (#4903)
Fix crash when an f-string follows a # fmt: off comment inside brackets (#5097)
Preserve multiline compound statement headers when # fmt: skip is placed on the
colon line (#5117)
Preview style
Improve heuristics around whether blank lines should appear before, within and after
groups of same-name decorated functions (such as @overload groups) in .pyi stub
files (#5021)
Fix blank lines being removed between a function and a decorated class in .pyi stub
files (#5092)
Prevent string merger from creating unsplittable long lines when a pragma comment
(e.g. # type: ignore) follows the closing bracket (#5096)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [psf/black](https://github.com/psf/black) | repository | minor | `26.3.1` → `26.5.1` |
Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://github.com/renovatebot/renovate/discussions/new) if you have any questions.
---
### Release Notes
<details>
<summary>psf/black (psf/black)</summary>
### [`v26.5.1`](https://github.com/psf/black/blob/HEAD/CHANGES.md#Version-2651)
[Compare Source](https://github.com/psf/black/compare/26.5.0...26.5.1)
##### Stable style
- Fix unstable formatting of annotated assignments whose subscript annotation contains
an inline comment (e.g. `x: list[ # pyright: ignore[...]`) ([#​5130](https://github.com/psf/black/issues/5130))
- Preserve inline comments (including `# type: ignore`) immediately before a
`# fmt: skip` line, avoiding AST equivalence failures ([#​5139](https://github.com/psf/black/issues/5139))
##### Packaging
- Correct the version in the published executables ([#​5137](https://github.com/psf/black/issues/5137))
##### Documentation
- Add Neovim integration guide covering conform.nvim, ALE, and simple command approaches
([#​5124](https://github.com/psf/black/issues/5124))
### [`v26.5.0`](https://github.com/psf/black/blob/HEAD/CHANGES.md#Version-2650)
[Compare Source](https://github.com/psf/black/compare/26.3.1...26.5.0)
##### Highlights
- Add support for unpacking in comprehensions (PEP 798) and for lazy imports (PEP 810),
both new syntactic features in Python 3.15 ([#​5048](https://github.com/psf/black/issues/5048))
- Python 3.15 is now supported. Compiled wheels are not yet provided for Python 3.15, so
performance may be slower than on existing Python versions. Wheels will be provided
once Python 3.15 is later in its release cycle. ([#​5127](https://github.com/psf/black/issues/5127))
##### Stable style
- Fix `# fmt: skip` being ignored in nested `if` expressions with parenthesized `in`
clauses ([#​4903](https://github.com/psf/black/issues/4903))
- Add syntactic support for Python 3.15 ([#​5048](https://github.com/psf/black/issues/5048))
- Fix crash when an f-string follows a `# fmt: off` comment inside brackets ([#​5097](https://github.com/psf/black/issues/5097))
- Preserve multiline compound statement headers when `# fmt: skip` is placed on the
colon line ([#​5117](https://github.com/psf/black/issues/5117))
##### Preview style
- Improve heuristics around whether blank lines should appear before, within and after
groups of same-name decorated functions (such as `@overload` groups) in `.pyi` stub
files ([#​5021](https://github.com/psf/black/issues/5021))
- Fix blank lines being removed between a function and a decorated class in `.pyi` stub
files ([#​5092](https://github.com/psf/black/issues/5092))
- Prevent string merger from creating unsplittable long lines when a pragma comment
(e.g. `# type: ignore`) follows the closing bracket ([#​5096](https://github.com/psf/black/issues/5096))
##### Packaging
- Run CI on 3.15 ([#​5127](https://github.com/psf/black/issues/5127))
##### Output
- Improve parse error readability by showing multi-line output with an error pointer.
([#​5068](https://github.com/psf/black/issues/5068))
- Add `SourceASTParseError` to distinguish source parse failures from internal safety
errors, improving error reporting when Black's lenient parser accepts input that
`ast.parse()` rejects ([#​5080](https://github.com/psf/black/issues/5080))
##### *Blackd*
- Return HTTP 400 (Bad Request) for source parse failures instead of HTTP 500, keeping
HTTP 500 only for genuine internal safety errors ([#​5080](https://github.com/psf/black/issues/5080))
##### Integrations
- Added documentation for doctest formatting tools and updated the integrations index to
match ([#​4916](https://github.com/psf/black/issues/4916))
##### Documentation
- Use "Version X.Y.Z" headings in changelog for stable permalink anchors on ReadTheDocs
([#​5063](https://github.com/psf/black/issues/5063))
- Note in the editor integrations that the SublimeText `sublack` plugin is archived and
unmaintained ([#​5082](https://github.com/psf/black/issues/5082))
</details>
---
### Configuration
📅 **Schedule**: (UTC)
- Branch creation
- "on friday"
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNzkuNCIsInVwZGF0ZWRJblZlciI6IjQzLjE3OS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJhdXRvbWF0aW9uIiwiY2hvcmUiLCJwcmUtY29tbWl0Il19-->
Renovate
scheduled this pull request to auto merge when all checks succeed 2026-05-22 02:38:35 +02:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
26.3.1→26.5.1Note: The
pre-commitmanager in Renovate is not supported by thepre-commitmaintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.Release Notes
psf/black (psf/black)
v26.5.1Compare Source
Stable style
an inline comment (e.g.
x: list[ # pyright: ignore[...]) (#5130)# type: ignore) immediately before a# fmt: skipline, avoiding AST equivalence failures (#5139)Packaging
Documentation
(#5124)
v26.5.0Compare Source
Highlights
both new syntactic features in Python 3.15 (#5048)
performance may be slower than on existing Python versions. Wheels will be provided
once Python 3.15 is later in its release cycle. (#5127)
Stable style
# fmt: skipbeing ignored in nestedifexpressions with parenthesizedinclauses (#4903)
# fmt: offcomment inside brackets (#5097)# fmt: skipis placed on thecolon line (#5117)
Preview style
groups of same-name decorated functions (such as
@overloadgroups) in.pyistubfiles (#5021)
.pyistubfiles (#5092)
(e.g.
# type: ignore) follows the closing bracket (#5096)Packaging
Output
(#5068)
SourceASTParseErrorto distinguish source parse failures from internal safetyerrors, improving error reporting when Black's lenient parser accepts input that
ast.parse()rejects (#5080)Blackd
HTTP 500 only for genuine internal safety errors (#5080)
Integrations
match (#4916)
Documentation
(#5063)
sublackplugin is archived andunmaintained (#5082)
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.
67f61b9d9dto9d7f5e6a28