Prepare release 24.4.2 (#4335)

* Prepare release 24.4.2

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Jelle Zijlstra 2024-04-25 16:52:26 -07:00 committed by GitHub
parent e4aaa8a994
commit 3702ba224e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 46 deletions

View File

@ -1,56 +1,18 @@
# Change Log # Change Log
## Unreleased ## 24.4.2
### Highlights This is a bugfix release to fix two regressions in the new f-string parser introduced in
24.4.1.
<!-- Include any especially major or disruptive changes here -->
### Stable style
<!-- Changes that affect Black's stable style -->
### Preview style
<!-- Changes that affect Black's preview style -->
### Configuration
<!-- Changes to how Black can be configured -->
### Packaging
<!-- Changes to how Black is packaged, such as dependency requirements -->
### Parser ### Parser
<!-- Changes to the parser or to version autodetection -->
- Fix regression where certain complex f-strings failed to parse (#4332) - Fix regression where certain complex f-strings failed to parse (#4332)
### Performance ### Performance
<!-- Changes that improve Black's performance. -->
- Fix bad performance on certain complex string literals (#4331) - Fix bad performance on certain complex string literals (#4331)
### Output
<!-- Changes to Black's terminal output and error messages -->
### _Blackd_
<!-- Changes to blackd -->
### Integrations
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
### Documentation
<!-- Major changes to documentation and policies. Small docs changes
don't need a changelog entry. -->
## 24.4.1 ## 24.4.1
### Highlights ### Highlights

View File

@ -8,7 +8,7 @@ Use [pre-commit](https://pre-commit.com/). Once you
repos: repos:
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster # Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror - repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.1 rev: 24.4.2
hooks: hooks:
- id: black - id: black
# It is recommended to specify the latest version of Python # It is recommended to specify the latest version of Python
@ -35,7 +35,7 @@ include Jupyter Notebooks. To use this hook, simply replace the hook's `id: blac
repos: repos:
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster # Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror - repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.1 rev: 24.4.2
hooks: hooks:
- id: black-jupyter - id: black-jupyter
# It is recommended to specify the latest version of Python # It is recommended to specify the latest version of Python

View File

@ -269,8 +269,8 @@ configuration file for consistent results across environments.
```console ```console
$ black --version $ black --version
black, 24.4.1 (compiled: yes) black, 24.4.2 (compiled: yes)
$ black --required-version 24.4.1 -c "format = 'this'" $ black --required-version 24.4.2 -c "format = 'this'"
format = "this" format = "this"
$ black --required-version 31.5b2 -c "still = 'beta?!'" $ black --required-version 31.5b2 -c "still = 'beta?!'"
Oh no! 💥 💔 💥 The required version does not match the running version! Oh no! 💥 💔 💥 The required version does not match the running version!
@ -366,7 +366,7 @@ You can check the version of _Black_ you have installed using the `--version` fl
```console ```console
$ black --version $ black --version
black, 24.4.1 black, 24.4.2
``` ```
#### `--config` #### `--config`