Bump black from 23.12.1 to 24.1.1
Bumps black from 23.12.1 to 24.1.1.
Release notes
Sourced from black's releases.
24.1.1
Bugfix release to fix a bug that made Black unusable on certain file systems with strict limits on path length.
Preview style
- Consistently add trailing comma on typed parameters (#4164)
Configuration
- Shorten the length of the name of the cache file to fix crashes on file systems that do not support long paths (#4176)
24.1.0
Highlights
This release introduces the new 2024 stable style (#4106), stabilizing the following changes:
- Add parentheses around
if
-else
expressions (#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
with
statement (#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-comma
or-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: skip
with other comments (#3959)There are already a few improvements in the
--preview
style, 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
... (truncated)
Changelog
Sourced from black's changelog.
24.1.1
Bugfix release to fix a bug that made Black unusable on certain file systems with strict limits on path length.
Preview style
- Consistently add trailing comma on typed parameters (#4164)
Configuration
- Shorten the length of the name of the cache file to fix crashes on file systems that do not support long paths (#4176)
24.1.0
Highlights
This release introduces the new 2024 stable style (#4106), stabilizing the following changes:
- Add parentheses around
if
-else
expressions (#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
with
statement (#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-comma
or-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: skip
with other comments (#3959)There are already a few improvements in the
--preview
style, 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
... (truncated)
Commits
-
e026c93
Prepare release 24.1.1 (#4186) -
79fc115
chore: ignore node_modules (produced by a pre-commit check) (#4184) -
8bf0454
Consistently add trailing comma on typed parameters (#4164) -
1607e9a
Fix missing space in option description (#4182) -
ed770ba
Fix cache file length (#4176) -
659c29a
New changelog -
0e6e46b
Prepare release 24.1.0 (#4170) -
4f47cac
Add --unstable flag (#4096) -
bccec8a
Show warning on invalid toml configuration (#4165) -
7d78946
Describe 2024 module docstring more accurately (#4168) - Additional commits viewable in compare view