Prepare release 24.3.0 (#4279)
This commit is contained in:
parent
f000936726
commit
552baf8229
38
CHANGES.md
38
CHANGES.md
@ -1,11 +1,9 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
## Unreleased
|
## 24.3.0
|
||||||
|
|
||||||
### Highlights
|
### Highlights
|
||||||
|
|
||||||
<!-- Include any especially major or disruptive changes here -->
|
|
||||||
|
|
||||||
This release is a milestone: it fixes Black's first CVE security vulnerability. If you
|
This release is a milestone: it fixes Black's first CVE security vulnerability. If you
|
||||||
run Black on untrusted input, or if you habitually put thousands of leading tab
|
run Black on untrusted input, or if you habitually put thousands of leading tab
|
||||||
characters in your docstrings, you are strongly encouraged to upgrade immediately to fix
|
characters in your docstrings, you are strongly encouraged to upgrade immediately to fix
|
||||||
@ -16,32 +14,14 @@ incorrect changes to certain f-strings that are valid in Python 3.12 and higher.
|
|||||||
|
|
||||||
### Stable style
|
### Stable style
|
||||||
|
|
||||||
<!-- Changes that affect Black's stable style -->
|
|
||||||
|
|
||||||
- Don't move comments along with delimiters, which could cause crashes (#4248)
|
- Don't move comments along with delimiters, which could cause crashes (#4248)
|
||||||
- Strengthen AST safety check to catch more unsafe changes to strings. Previous versions
|
- Strengthen AST safety check to catch more unsafe changes to strings. Previous versions
|
||||||
of Black would incorrectly format the contents of certain unusual f-strings containing
|
of Black would incorrectly format the contents of certain unusual f-strings containing
|
||||||
nested strings with the same quote type. Now, Black will crash on such strings until
|
nested strings with the same quote type. Now, Black will crash on such strings until
|
||||||
support for the new f-string syntax is implemented. (#4270)
|
support for the new f-string syntax is implemented. (#4270)
|
||||||
- Fixed a bug where line-ranges exceeding the last code line would not work as expected
|
- Fix a bug where line-ranges exceeding the last code line would not work as expected
|
||||||
(#4273)
|
(#4273)
|
||||||
|
|
||||||
### 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
|
|
||||||
|
|
||||||
<!-- Changes to the parser or to version autodetection -->
|
|
||||||
|
|
||||||
### Performance
|
### Performance
|
||||||
|
|
||||||
- Fix catastrophic performance on docstrings that contain large numbers of leading tab
|
- Fix catastrophic performance on docstrings that contain large numbers of leading tab
|
||||||
@ -49,23 +29,9 @@ incorrect changes to certain f-strings that are valid in Python 3.12 and higher.
|
|||||||
[CVE-2024-21503](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21503).
|
[CVE-2024-21503](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21503).
|
||||||
(#4278)
|
(#4278)
|
||||||
|
|
||||||
### Output
|
|
||||||
|
|
||||||
<!-- Changes to Black's terminal output and error messages -->
|
|
||||||
|
|
||||||
### _Blackd_
|
|
||||||
|
|
||||||
<!-- Changes to blackd -->
|
|
||||||
|
|
||||||
### Integrations
|
|
||||||
|
|
||||||
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
|
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
|
|
||||||
- Note what happens when `--check` is used with `--quiet` (#4236)
|
- Note what happens when `--check` is used with `--quiet` (#4236)
|
||||||
<!-- Major changes to documentation and policies. Small docs changes
|
|
||||||
don't need a changelog entry. -->
|
|
||||||
|
|
||||||
## 24.2.0
|
## 24.2.0
|
||||||
|
|
||||||
|
@ -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.2.0
|
rev: 24.3.0
|
||||||
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.2.0
|
rev: 24.3.0
|
||||||
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
|
||||||
|
@ -269,8 +269,8 @@ configuration file for consistent results across environments.
|
|||||||
|
|
||||||
```console
|
```console
|
||||||
$ black --version
|
$ black --version
|
||||||
black, 24.2.0 (compiled: yes)
|
black, 24.3.0 (compiled: yes)
|
||||||
$ black --required-version 24.2.0 -c "format = 'this'"
|
$ black --required-version 24.3.0 -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.2.0
|
black, 24.3.0
|
||||||
```
|
```
|
||||||
|
|
||||||
#### `--config`
|
#### `--config`
|
||||||
|
Loading…
Reference in New Issue
Block a user