Prepare release 24.2.0 (#4226) · psf/black@6fdf8a4 (original) (raw)

3 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
1 1 # Change Log
2 2
3 -## Unreleased
4 -
5 -### Highlights
6 -
7 -
3 +## 24.2.0
8 4
9 5 ### Stable style
10 6
11 -
12 -
13 7 - Fixed a bug where comments where mistakenly removed along with redundant parentheses
14 8 (#4218)
15 9
16 10 ### Preview style
17 11
18 -
19 -
20 12 - Move the `hug_parens_with_braces_and_square_brackets` feature to the unstable style
21 13 due to an outstanding crash and proposed formatting tweaks (#4198)
22 14 - Fixed a bug where base expressions caused inconsistent formatting of \*\* in tenary
@@ -35,40 +27,15 @@
35 27 simply add an empty `[tool.black]` to the previously discovered `pyproject.toml`
36 28 (#4204)
37 29
38 -### Packaging
39 -
40 -
41 -
42 -### Parser
43 -
44 -
45 -
46 -### Performance
47 -
48 -
49 -
50 30 ### Output
51 31
52 -
53 -
54 32 - Black will swallow any `SyntaxWarning`s or `DeprecationWarning`s produced by the `ast`
55 33 module when performing equivalence checks (#4189)
56 34
57 -### _Blackd_
58 -
59 -
60 -
61 35 ### Integrations
62 36
63 -
64 -
65 37 - Add a JSONSchema and provide a validate-pyproject entry-point (#4181)
66 38
67 -### Documentation
68 -
69 -<!-- Major changes to documentation and policies. Small docs changes
70 - don't need a changelog entry. -->
71 -
72 39 ## 24.1.1
73 40
74 41 Bugfix release to fix a bug that made Black unusable on certain file systems with strict
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ Use [pre-commit](https://pre-commit.com/). Once you
8 8 repos:
9 9 # Using this mirror lets us use mypyc-compiled black, which is about 2x faster
10 10 - repo: https://github.com/psf/black-pre-commit-mirror
11 -rev: 24.1.1
11 +rev: 24.2.0
12 12 hooks:
13 13 - id: black
14 14 # 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
35 35 repos:
36 36 # Using this mirror lets us use mypyc-compiled black, which is about 2x faster
37 37 - repo: https://github.com/psf/black-pre-commit-mirror
38 - rev: 24.1.1
38 + rev: 24.2.0
39 39 hooks:
40 40 - id: black-jupyter
41 41 # It is recommended to specify the latest version of Python
Original file line number Diff line number Diff line change
@@ -266,8 +266,8 @@ configuration file for consistent results across environments.
266 266
267 267 ```console
268 268 $ black --version
269 -black, 24.1.1 (compiled: yes)
270 -$ black --required-version 24.1.1 -c "format = 'this'"
269 +black, 24.2.0 (compiled: yes)
270 +$ black --required-version 24.2.0 -c "format = 'this'"
271 271 format = "this"
272 272 $ black --required-version 31.5b2 -c "still = 'beta?!'"
273 273 Oh no! 💥 💔 💥 The required version does not match the running version!
@@ -363,7 +363,7 @@ You can check the version of _Black_ you have installed using the `--version` fl
363 363
364 364 ```console
365 365 $ black --version
366 -black, 24.1.1
366 +black, 24.2.0
367 367 ```
368 368
369 369 #### `--config`