Skip to content

Commit 552baf8

Browse files
Prepare release 24.3.0 (#4279)
1 parent f000936 commit 552baf8

File tree

3 files changed

+7
-41
lines changed

3 files changed

+7
-41
lines changed

CHANGES.md

Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# Change Log
22

3-
## Unreleased
3+
## 24.3.0
44

55
### Highlights
66

7-
<!-- Include any especially major or disruptive changes here -->
8-
97
This release is a milestone: it fixes Black's first CVE security vulnerability. If you
108
run Black on untrusted input, or if you habitually put thousands of leading tab
119
characters in your docstrings, you are strongly encouraged to upgrade immediately to fix
@@ -16,56 +14,24 @@ incorrect changes to certain f-strings that are valid in Python 3.12 and higher.
1614

1715
### Stable style
1816

19-
<!-- Changes that affect Black's stable style -->
20-
2117
- Don't move comments along with delimiters, which could cause crashes (#4248)
2218
- Strengthen AST safety check to catch more unsafe changes to strings. Previous versions
2319
of Black would incorrectly format the contents of certain unusual f-strings containing
2420
nested strings with the same quote type. Now, Black will crash on such strings until
2521
support for the new f-string syntax is implemented. (#4270)
26-
- Fixed a bug where line-ranges exceeding the last code line would not work as expected
22+
- Fix a bug where line-ranges exceeding the last code line would not work as expected
2723
(#4273)
2824

29-
### Preview style
30-
31-
<!-- Changes that affect Black's preview style -->
32-
33-
### Configuration
34-
35-
<!-- Changes to how Black can be configured -->
36-
37-
### Packaging
38-
39-
<!-- Changes to how Black is packaged, such as dependency requirements -->
40-
41-
### Parser
42-
43-
<!-- Changes to the parser or to version autodetection -->
44-
4525
### Performance
4626

4727
- Fix catastrophic performance on docstrings that contain large numbers of leading tab
4828
characters. This fixes
4929
[CVE-2024-21503](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-21503).
5030
(#4278)
5131

52-
### Output
53-
54-
<!-- Changes to Black's terminal output and error messages -->
55-
56-
### _Blackd_
57-
58-
<!-- Changes to blackd -->
59-
60-
### Integrations
61-
62-
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
63-
6432
### Documentation
6533

6634
- Note what happens when `--check` is used with `--quiet` (#4236)
67-
<!-- Major changes to documentation and policies. Small docs changes
68-
don't need a changelog entry. -->
6935

7036
## 24.2.0
7137

docs/integrations/source_version_control.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Use [pre-commit](https://pre-commit.com/). Once you
88
repos:
99
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
1010
- repo: https://github.com/psf/black-pre-commit-mirror
11-
rev: 24.2.0
11+
rev: 24.3.0
1212
hooks:
1313
- id: black
1414
# 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
3535
repos:
3636
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
3737
- repo: https://github.com/psf/black-pre-commit-mirror
38-
rev: 24.2.0
38+
rev: 24.3.0
3939
hooks:
4040
- id: black-jupyter
4141
# It is recommended to specify the latest version of Python

docs/usage_and_configuration/the_basics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ configuration file for consistent results across environments.
269269

270270
```console
271271
$ black --version
272-
black, 24.2.0 (compiled: yes)
273-
$ black --required-version 24.2.0 -c "format = 'this'"
272+
black, 24.3.0 (compiled: yes)
273+
$ black --required-version 24.3.0 -c "format = 'this'"
274274
format = "this"
275275
$ black --required-version 31.5b2 -c "still = 'beta?!'"
276276
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
366366

367367
```console
368368
$ black --version
369-
black, 24.2.0
369+
black, 24.3.0
370370
```
371371

372372
#### `--config`

0 commit comments

Comments
 (0)