chore(deps): update dependency black to v26#313
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
Conversation
1038665 to
af6522b
Compare
b83bda8 to
bc1fc97
Compare
bc1fc97 to
bfcf0bf
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.10.0โ==26.1.0Release Notes
psf/black (black)
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: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
๐ฆ Automerge: Disabled by config. Please merge this manually once you are satisfied.
โป Rebasing: Whenever PR becomes conflicted, 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.