Skip to content

Commit 9edba85

Browse files
Prepare release 23.10.0 (#3951)
1 parent bb58807 commit 9edba85

File tree

3 files changed

+42
-28
lines changed

3 files changed

+42
-28
lines changed

CHANGES.md

Lines changed: 37 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,14 @@
1010

1111
<!-- Changes that affect Black's stable style -->
1212

13-
- Fix comments getting removed from inside parenthesized strings (#3909)
14-
1513
### Preview style
1614

1715
<!-- Changes that affect Black's preview style -->
1816

19-
- Fix long lines with power operators getting splitted before the line length (#3942)
20-
- Long type hints are now wrapped in parentheses and properly indented when split across
21-
multiple lines (#3899)
22-
- Magic trailing commas are now respected in return types. (#3916)
23-
- Require one empty line after module-level docstrings. (#3932)
24-
- Treat raw triple-quoted strings as docstrings (#3947)
25-
2617
### Configuration
2718

2819
<!-- Changes to how Black can be configured -->
2920

30-
- Fix cache versioning logic when `BLACK_CACHE_DIR` is set (#3937)
31-
3221
### Packaging
3322

3423
<!-- Changes to how Black is packaged, such as dependency requirements -->
@@ -37,11 +26,6 @@
3726

3827
<!-- Changes to the parser or to version autodetection -->
3928

40-
- Fix bug where attributes named `type` were not acccepted inside `match` statements
41-
(#3950)
42-
- Add support for PEP 695 type aliases containing lambdas and other unusual expressions
43-
(#3949)
44-
4529
### Performance
4630

4731
<!-- Changes that improve Black's performance. -->
@@ -50,11 +34,6 @@
5034

5135
<!-- Changes to Black's terminal output and error messages -->
5236

53-
- Black no longer attempts to provide special errors for attempting to format Python 2
54-
code (#3933)
55-
- Black will more consistently print stacktraces on internal errors in verbose mode
56-
(#3938)
57-
5837
### _Blackd_
5938

6039
<!-- Changes to blackd -->
@@ -63,13 +42,48 @@
6342

6443
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
6544

66-
- The action output displayed in the job summary is now wrapped in Markdown (#3914)
67-
6845
### Documentation
6946

7047
<!-- Major changes to documentation and policies. Small docs changes
7148
don't need a changelog entry. -->
7249

50+
## 23.10.0
51+
52+
### Stable style
53+
54+
- Fix comments getting removed from inside parenthesized strings (#3909)
55+
56+
### Preview style
57+
58+
- Fix long lines with power operators getting split before the line length (#3942)
59+
- Long type hints are now wrapped in parentheses and properly indented when split across
60+
multiple lines (#3899)
61+
- Magic trailing commas are now respected in return types. (#3916)
62+
- Require one empty line after module-level docstrings. (#3932)
63+
- Treat raw triple-quoted strings as docstrings (#3947)
64+
65+
### Configuration
66+
67+
- Fix cache versioning logic when `BLACK_CACHE_DIR` is set (#3937)
68+
69+
### Parser
70+
71+
- Fix bug where attributes named `type` were not acccepted inside `match` statements
72+
(#3950)
73+
- Add support for PEP 695 type aliases containing lambdas and other unusual expressions
74+
(#3949)
75+
76+
### Output
77+
78+
- Black no longer attempts to provide special errors for attempting to format Python 2
79+
code (#3933)
80+
- Black will more consistently print stacktraces on internal errors in verbose mode
81+
(#3938)
82+
83+
### Integrations
84+
85+
- The action output displayed in the job summary is now wrapped in Markdown (#3914)
86+
7387
## 23.9.1
7488

7589
Due to various issues, the previous release (23.9.0) did not include compiled mypyc

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: 23.9.1
11+
rev: 23.10.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: 23.9.1
38+
rev: 23.10.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
@@ -194,8 +194,8 @@ configuration file for consistent results across environments.
194194

195195
```console
196196
$ black --version
197-
black, 23.9.1 (compiled: yes)
198-
$ black --required-version 23.9.1 -c "format = 'this'"
197+
black, 23.10.0 (compiled: yes)
198+
$ black --required-version 23.10.0 -c "format = 'this'"
199199
format = "this"
200200
$ black --required-version 31.5b2 -c "still = 'beta?!'"
201201
Oh no! 💥 💔 💥 The required version does not match the running version!
@@ -286,7 +286,7 @@ You can check the version of _Black_ you have installed using the `--version` fl
286286

287287
```console
288288
$ black --version
289-
black, 23.9.1
289+
black, 23.10.0
290290
```
291291

292292
#### `--config`

0 commit comments

Comments
 (0)