Prepare release 23.9.1 (#3878)

This commit is contained in:
Jelle Zijlstra 2023-09-10 17:35:41 -07:00 committed by GitHub
parent 62dca32dc5
commit e87737140f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 10 deletions

View File

@ -22,8 +22,6 @@
<!-- Changes to how Black is packaged, such as dependency requirements --> <!-- Changes to how Black is packaged, such as dependency requirements -->
- Upgrade to mypy 1.5.1 (#3864)
### Parser ### Parser
<!-- Changes to the parser or to version autodetection --> <!-- Changes to the parser or to version autodetection -->
@ -32,9 +30,6 @@
<!-- Changes that improve Black's performance. --> <!-- Changes that improve Black's performance. -->
- Store raw tuples instead of NamedTuples in Black's cache, improving performance and
decreasing the size of the cache (#3877)
### Output ### Output
<!-- Changes to Black's terminal output and error messages --> <!-- Changes to Black's terminal output and error messages -->
@ -52,6 +47,24 @@
<!-- Major changes to documentation and policies. Small docs changes <!-- Major changes to documentation and policies. Small docs changes
don't need a changelog entry. --> don't need a changelog entry. -->
## 23.9.1
Due to various issues, the previous release (23.9.0) did not include compiled mypyc
wheels, which make Black significantly faster. These issues have now been fixed, and
this release should come with compiled wheels once again.
There will be no wheels for Python 3.12 due to a bug in mypyc. We will provide 3.12
wheels in a future release as soon as the mypyc bug is fixed.
### Packaging
- Upgrade to mypy 1.5.1 (#3864)
### Performance
- Store raw tuples instead of NamedTuples in Black's cache, improving performance and
decreasing the size of the cache (#3877)
## 23.9.0 ## 23.9.0
### Preview style ### Preview style

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: 23.9.0 rev: 23.9.1
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: 23.9.0 rev: 23.9.1
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

@ -193,8 +193,8 @@ configuration file for consistent results across environments.
```console ```console
$ black --version $ black --version
black, 23.9.0 (compiled: yes) black, 23.9.1 (compiled: yes)
$ black --required-version 23.9.0 -c "format = 'this'" $ black --required-version 23.9.1 -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!
@ -285,7 +285,7 @@ You can check the version of _Black_ you have installed using the `--version` fl
```console ```console
$ black --version $ black --version
black, 23.9.0 black, 23.9.1
``` ```
#### `--config` #### `--config`