chore(deps-dev): update black requirement from <24.0.0 to <25.0.0
Updates the requirements on black to permit the latest version.
Release notes
Sourced from black's releases.
24.1.0
Highlights
This release introduces the new 2024 stable style (#4106), stabilizing the following changes:
- Add parentheses around
if-elseexpressions (#2278)- Dummy class and function implementations consisting only of
...are formatted more compactly (#3796)- If an assignment statement is too long, we now prefer splitting on the right-hand side (#3368)
- Hex codes in Unicode escape sequences are now standardized to lowercase (#2916)
- Allow empty first lines at the beginning of most blocks (#3967, #4061)
- Add parentheses around long type annotations (#3899)
- Enforce newline after module docstrings (#3932, #4028)
- Fix incorrect magic trailing comma handling in return types (#3916)
- Remove blank lines before class docstrings (#3692)
- Wrap multiple context managers in parentheses if combined in a single
withstatement (#3489)- Fix bug in line length calculations for power operations (#3942)
- Add trailing commas to collection literals even if there's a comment after the last entry (#3393)
- When using
--skip-magic-trailing-commaor-C, trailing commas are stripped from subscript expressions with more than 1 element (#3209)- Add extra blank lines in stubs in a few cases (#3564, #3862)
- Accept raw strings as docstrings (#3947)
- Split long lines in case blocks (#4024)
- Stop removing spaces from walrus operators within subscripts (#3823)
- Fix incorrect formatting of certain async statements (#3609)
- Allow combining
# fmt: skipwith other comments (#3959)There are already a few improvements in the
--previewstyle, which are slated for the 2025 stable style. Try them out and share your feedback. In the past, the preview style has included some features that we were not able to stabilize. This year, we're adding a separate--unstablestyle for features with known problems. Now, the--previewstyle only includes features that we actually expect to make it into next year's stable style.Stable style
Several bug fixes were made in features that are moved to the stable style in this release:
- Fix comment handling when parenthesising conditional expressions (#4134)
- Fix bug where spaces were not added around parenthesized walruses in subscripts, unlike other binary operators (#4109)
- Remove empty lines before docstrings in async functions (#4132)
- Address a missing case in the change to allow empty lines at the beginning of all
... (truncated)
Changelog
Sourced from black's changelog.
24.1.0
Highlights
This release introduces the new 2024 stable style (#4106), stabilizing the following changes:
- Add parentheses around
if-elseexpressions (#2278)- Dummy class and function implementations consisting only of
...are formatted more compactly (#3796)- If an assignment statement is too long, we now prefer splitting on the right-hand side (#3368)
- Hex codes in Unicode escape sequences are now standardized to lowercase (#2916)
- Allow empty first lines at the beginning of most blocks (#3967, #4061)
- Add parentheses around long type annotations (#3899)
- Enforce newline after module docstrings (#3932, #4028)
- Fix incorrect magic trailing comma handling in return types (#3916)
- Remove blank lines before class docstrings (#3692)
- Wrap multiple context managers in parentheses if combined in a single
withstatement (#3489)- Fix bug in line length calculations for power operations (#3942)
- Add trailing commas to collection literals even if there's a comment after the last entry (#3393)
- When using
--skip-magic-trailing-commaor-C, trailing commas are stripped from subscript expressions with more than 1 element (#3209)- Add extra blank lines in stubs in a few cases (#3564, #3862)
- Accept raw strings as docstrings (#3947)
- Split long lines in case blocks (#4024)
- Stop removing spaces from walrus operators within subscripts (#3823)
- Fix incorrect formatting of certain async statements (#3609)
- Allow combining
# fmt: skipwith other comments (#3959)There are already a few improvements in the
--previewstyle, which are slated for the 2025 stable style. Try them out and share your feedback. In the past, the preview style has included some features that we were not able to stabilize. This year, we're adding a separate--unstablestyle for features with known problems. Now, the--previewstyle only includes features that we actually expect to make it into next year's stable style.Stable style
Several bug fixes were made in features that are moved to the stable style in this release:
- Fix comment handling when parenthesising conditional expressions (#4134)
- Fix bug where spaces were not added around parenthesized walruses in subscripts, unlike other binary operators (#4109)
- Remove empty lines before docstrings in async functions (#4132)
- Address a missing case in the change to allow empty lines at the beginning of all
... (truncated)
Commits
0e6e46bPrepare release 24.1.0 (#4170)4f47cacAdd --unstable flag (#4096)bccec8aShow warning on invalid toml configuration (#4165)7d78946Describe 2024 module docstring more accurately (#4168)17f7f29Simplify code in lines.py (#4167)f7d552dRemove reference (#4169)a5196e6fix: Don't normalize whitespace before fmt:skip comments (#4146)59b9d85Create the 2024 stable style (#4106)8fe602bfix pathlib exception handling with symlinks (#4161)6f3fb78Bump actions/cache from 3 to 4 (#4162)- 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.
A newer version of black exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.
@dependabot rebase
Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!
If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.
@dependabot recreate