ocean
ocean copied to clipboard
Bump black from 24.10.0 to 25.9.0
Bumps black from 24.10.0 to 25.9.0.
Release notes
Sourced from black's releases.
25.9.0
Highlights
- Remove support for pre-python 3.7
await/asyncas soft keywords/variable names (#4676)Stable style
- Fix crash while formatting a long
delstatement containing tuples (#4628)- Fix crash while formatting expressions using the walrus operator in complex
withstatements (#4630)- Handle
# fmt: skipfollowed by a comment at the end of file (#4635)- Fix crash when a tuple appears in the
asclause of awithstatement (#4634)- Fix crash when tuple is used as a context manager inside a
withstatement (#4646)- Fix crash when formatting a
\followed by a\rfollowed by a comment (#4663)- Fix crash on a
\\r\n(#4673)- Fix crash on
await ...(where...is a literalEllipsis) (#4676)- Fix crash on parenthesized expression inside a type parameter bound (#4684)
- Fix crash when using line ranges excluding indented single line decorated items (#4670)
Preview style
- Fix a bug where one-liner functions/conditionals marked with
# fmt: skipwould still be formatted (#4552)- Improve
multiline_string_handlingwith ternaries and dictionaries (#4657)- Fix a bug where
string_processingwould not split f-strings directly after expressions (#4680)- Wrap the
inclause of comprehensions across lines if necessary (#4699)- Remove parentheses around multiple exception types in
exceptandexcept*withoutas. (#4720)- Add
\rstyle newlines to the potential newlines to normalize file newlines both from and to (#4710)Parser
- Rewrite tokenizer to improve performance and compliance (#4536)
- Fix bug where certain unusual expressions (e.g., lambdas) were not accepted in type parameter bounds and defaults. (#4602)
Performance
- Avoid using an extra process when running with only one worker (#4734)
Integrations
... (truncated)
Changelog
Sourced from black's changelog.
25.9.0
Highlights
- Remove support for pre-python 3.7
await/asyncas soft keywords/variable names (#4676)Stable style
- Fix crash while formatting a long
delstatement containing tuples (#4628)- Fix crash while formatting expressions using the walrus operator in complex
withstatements (#4630)- Handle
# fmt: skipfollowed by a comment at the end of file (#4635)- Fix crash when a tuple appears in the
asclause of awithstatement (#4634)- Fix crash when tuple is used as a context manager inside a
withstatement (#4646)- Fix crash when formatting a
\followed by a\rfollowed by a comment (#4663)- Fix crash on a
\\r\n(#4673)- Fix crash on
await ...(where...is a literalEllipsis) (#4676)- Fix crash on parenthesized expression inside a type parameter bound (#4684)
- Fix crash when using line ranges excluding indented single line decorated items (#4670)
Preview style
- Fix a bug where one-liner functions/conditionals marked with
# fmt: skipwould still be formatted (#4552)- Improve
multiline_string_handlingwith ternaries and dictionaries (#4657)- Fix a bug where
string_processingwould not split f-strings directly after expressions (#4680)- Wrap the
inclause of comprehensions across lines if necessary (#4699)- Remove parentheses around multiple exception types in
exceptandexcept*withoutas. (#4720)- Add
\rstyle newlines to the potential newlines to normalize file newlines both from and to (#4710)Parser
- Rewrite tokenizer to improve performance and compliance (#4536)
- Fix bug where certain unusual expressions (e.g., lambdas) were not accepted in type parameter bounds and defaults. (#4602)
Performance
- Avoid using an extra process when running with only one worker (#4734)
Integrations
... (truncated)
Commits
af0ba72Prepare docs for release 25.9.0 (#4751)ffc01a0Fix schema generation error caused by new click version (#4750)626b32fAdd normalizing for\rstyle newlines (#4710)57a4612Fix mypy type issue (#4745)4f6ad7cWrap theinclause of comprehensions across lines if necessary (#4699)24f5169ci: Run diff-shades on unstable instead of preview (#4741)4d55e60Bump actions/setup-python from 5 to 6 (#4744)0cf39efImprove the performance of get_string_prefix (#4742)1f779deFix line ranges decorator edge case (#4670)203fd6bOptimize Line string method (#4739)- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.