chore(deps) Update dependency black to v26#562
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
Contributor
Author
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
6617aff to
eb91c1a
Compare
eb91c1a to
0c5e647
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
>=24.0.0,<25.0.0β>=26.5.1,<26.6.0Release Notes
psf/black (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)
v26.3.1Compare Source
Stable style
exact-length placeholders for short magics and aborting if a placeholder can no longer
be unmasked safely (#β5038)
Configuration
--python-cell-magicsso custommagic names cannot affect cache paths (#β5038)
Blackd
and request body limits, and bound executor submissions to improve backpressure
(#β5039)
v26.3.0Compare Source
Stable style
# type: ignorecomments would be merged with othercomments on the same line, preventing AST equivalence failures (#β4888)
Preview style
ifguards incaseblocks were incorrectly split when the pattern hada trailing comma (#β4884)
string_processingcrashing on unassigned long string literals with trailingcommas (one-item tuples) (#β4929)
Packaging
frozen environments (#β4930)
Performance
uvloop.install()in favor ofuvloop.new_event_loop()(#β4996)
maybe_install_uvloopfunction tomaybe_use_uvloopto simplify loopinstallation and creation of either a uvloop/winloop evenloop or default eventloop
(#β4996)
Output
version, since AST safety checks cannot parse newer syntax. Also replace the
misleading "INTERNAL ERROR" message with an actionable error explaining the version
mismatch (#β4983)
Blackd
windows when winloop is installed. (#β4996)
Integrations
blackrequirements in the GitHub Action whenuse_pyprojectisenabled so that only version specifiers are accepted and direct references such as
black @​ https://...are rejected. Users should upgrade to the latest version of theaction as soon as possible. This update is received automatically when using
psf/black@stable, and is independent of the version of Black installed by theaction. (#β5031)
Documentation
wrap_comprehension_in,simplify_power_operator_hugging, andwrap_long_dict_values_in_parensfeatures(#β4987)
v26.1.0Compare Source
Highlights
Introduces the 2026 stable style (#β4892), stabilizing the following changes:
always_one_newline_after_import: Always force one blank line after importstatements, except when the line after the import is a comment or an import statement
(#β4489)
fix_fmt_skip_in_one_liners: Fix# fmt: skipbehavior on one-liner declarations,such as
def foo(): return "mock" # fmt: skip, where previously the declaration wouldhave been incorrectly collapsed (#β4800)
fix_module_docstring_detection: Fix module docstrings being treated as normalstrings 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\rstyle newlines to the potential newlines tonormalize file newlines both from and to (#β4710)
remove_parens_around_except_types: Remove parentheses around multiple exceptiontypes in
exceptandexcept*withoutas(#β4720)remove_parens_from_assignment_lhs: Remove unnecessary parentheses from the left-handside of assignments while preserving magic trailing commas and intentional multiline
formatting (#β4865)
standardize_type_comments: Format type comments which have zero or more spacesbetween
#andtype:or betweentype:and value to# type: (value)(#β4645)The following change was not in any previous stable release:
_width_table.pyand added tests for the Khmer language (#β4253)This release alo bumps
pathspecto v1 and fixes inconsistencies with Git's.gitignorelogic (#β4958). Now, files will be ignored if a pattern matches them, evenif the parent directory is directly unignored. For example, Black would previously
format
exclude/not_this/foo.pywith this.gitignore:Now,
exclude/not_this/foo.pywill remain ignored. To ensureexclude/not_this/andall of it's children are included in formatting (and in Git), use this
.gitignore:This new behavior matches Git. The leading
*/are only necessary if you wish to ignorematching subdirectories (like the previous behavior did), and not just matching root
directories.
Output
Integrations
v25.12.0Compare Source
Highlights
Stable style
# fmt: off/# fmt: onblocks were incorrectlyremoved, particularly affecting Jupytext's
# %% [markdown]comments (#β4845)# fmt: skipcomments are used in a multi-part if-clause, onstring literals, or on dictionary entries with long lines (#β4872)
fmt:directives aren't on the top level (#β4856)Preview style
fmt: skipskipping the line after instead of the line it's on (#β4855)magic trailing commas and intentional multiline formatting (#β4865)
fix_fmt_skip_in_one_linerscrashing onwithstatements (#β4853)fix_fmt_skip_in_one_linerscrashing on annotated parameters (#β4854)# fmt: skipon them (#β4894)Packaging
Integrations
output-fileinput to GitHub Actionpsf/blackto write formatter output to afile for artifact capture and log cleanliness (#β4824)
v25.11.0Compare Source
Highlights
Stable style
# fmt: offand# fmt: onwere reformatted (#β4811)being normalized (#β4811)
Preview style
multiline_string_handlingfrom--unstableto--preview(#β4760)comments (#β4764)
# type: <value>(#β4645)fix_fmt_skip_in_one_linerspreview feature to respect# fmt: skipfor compoundstatements with semicolon-separated bodies (#β4800)
Configuration
no_cacheoption to control caching behavior. (#β4803)Packaging
Output
(#β4610)
Blackd
requests to blackd (#β4774)
Integrations
psf/blackto support therequired-versionmajor-version-only"stability" format when using pyproject.toml (#β4770)
v25.9.0Compare Source
Highlights
await/asyncas soft keywords/variable names(#β4676)
Stable style
delstatement containing tuples (#β4628)withstatements (#β4630)
# fmt: skipfollowed by a comment at the end of file (#β4635)asclause of awithstatement (#β4634)withstatement (#β4646)\followed by a\rfollowed by a comment (#β4663)\\r\n(#β4673)await ...(where...is a literalEllipsis) (#β4676)(#β4670)
Preview style
# fmt: skipwould stillbe formatted (#β4552)
multiline_string_handlingwith ternaries and dictionaries (#β4657)string_processingwould not split f-strings directly afterexpressions (#β4680)
inclause of comprehensions across lines if necessary (#β4699)exceptandexcept*withoutas. (#β4720)\rstyle newlines to the potential newlines to normalize file newlines both fromand to (#β4710)
Parser
parameter bounds and defaults. (#β4602)
Performance
Integrations
psf/blackto read Black version from an additional section inpyproject.toml:
[project.dependency-groups](#β4606)Documentation
v25.1.0Compare Source
Highlights
This release introduces the new 2025 stable style (#β4558), stabilizing the following
changes:
# fmt: skipcomments is no longer normalized (#β4146)(#β4154)
*and more complex type variable tuple (#β4440)The following changes were not in any previous release:
over multiple lines first instead of type parameter definitions (#β4553)
Stable style
empty lines (#β4484)
withstatements containing tuple generators/unpacking(#β4538)
Preview style
(#β4498)
string_processingandwrap_long_dict_values_in_parensfrom removingparentheses around long dictionary values (#β4377)
wrap_long_dict_values_in_parensfrom the unstable to preview style (#β4561)Packaging
License-Expressionmetadata field, seePEP 639. (#β4479)
Performance
is_fstring_startfunction in Black's tokenizer (#β4541)Integrations
--stdin-filenameset to a force excluded path, stdin won't beformatted. (#β4539)
Configuration
π Schedule: (in timezone America/Chicago)
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» 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 was generated by Mend Renovate. View the repository job log.