Skip to content

Commit 193ee76

Browse files
Prepare release 23.7.0 (#3776)
1 parent 38723bb commit 193ee76

File tree

3 files changed

+60
-39
lines changed

3 files changed

+60
-39
lines changed

CHANGES.md

Lines changed: 55 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,97 +6,118 @@
66

77
<!-- Include any especially major or disruptive changes here -->
88

9+
### Stable style
10+
11+
<!-- Changes that affect Black's stable style -->
12+
13+
### Preview style
14+
15+
<!-- Changes that affect Black's preview style -->
16+
17+
### Configuration
18+
19+
<!-- Changes to how Black can be configured -->
20+
21+
### Packaging
22+
23+
<!-- Changes to how Black is packaged, such as dependency requirements -->
24+
25+
### Parser
26+
27+
<!-- Changes to the parser or to version autodetection -->
28+
29+
### Performance
30+
31+
<!-- Changes that improve Black's performance. -->
32+
33+
### Output
34+
35+
<!-- Changes to Black's terminal output and error messages -->
36+
37+
### _Blackd_
38+
39+
<!-- Changes to blackd -->
40+
41+
### Integrations
42+
43+
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
44+
45+
### Documentation
46+
47+
<!-- Major changes to documentation and policies. Small docs changes
48+
don't need a changelog entry. -->
49+
50+
## 23.7.0
51+
52+
### Highlights
53+
954
- Runtime support for Python 3.7 has been removed. Formatting 3.7 code will still be
1055
supported until further notice (#3765)
1156

1257
### Stable style
1358

14-
<!-- Changes that affect Black's stable style -->
15-
1659
- Fix a bug where an illegal trailing comma was added to return type annotations using
1760
PEP 604 unions (#3735)
1861
- Fix several bugs and crashes where comments in stub files were removed or mishandled
19-
under some circumstances. (#3745)
20-
- Fix a bug where multi-line open parenthesis magic comment like `type: ignore` were not
21-
correctly parsed (#3740)
22-
- Fix error in AST validation when Black removes trailing whitespace in a type comment
62+
under some circumstances (#3745)
63+
- Fix a crash with multi-line magic comments like `type: ignore` within parentheses
64+
(#3740)
65+
- Fix error in AST validation when _Black_ removes trailing whitespace in a type comment
2366
(#3773)
2467

2568
### Preview style
2669

27-
<!-- Changes that affect Black's preview style -->
28-
2970
- Implicitly concatenated strings used as function args are no longer wrapped inside
3071
parentheses (#3640)
3172
- Remove blank lines between a class definition and its docstring (#3692)
3273

3374
### Configuration
3475

35-
<!-- Changes to how Black can be configured -->
36-
37-
- The `--workers` argument to Black can now be specified via the `BLACK_NUM_WORKERS`
76+
- The `--workers` argument to _Black_ can now be specified via the `BLACK_NUM_WORKERS`
3877
environment variable (#3743)
3978
- `.pytest_cache`, `.ruff_cache` and `.vscode` are now excluded by default (#3691)
40-
- Fix black not honouring `pyproject.toml` settings when running `--stdin-filename` and
41-
the `pyproject.toml` found isn't in the current working directory (#3719)
42-
- Black will now error if `exclude` and `extend-exclude` have invalid data types in
79+
- Fix _Black_ not honouring `pyproject.toml` settings when running `--stdin-filename`
80+
and the `pyproject.toml` found isn't in the current working directory (#3719)
81+
- _Black_ will now error if `exclude` and `extend-exclude` have invalid data types in
4382
`pyproject.toml`, instead of silently doing the wrong thing (#3764)
4483

4584
### Packaging
4685

47-
<!-- Changes to how Black is packaged, such as dependency requirements -->
48-
4986
- Upgrade mypyc from 0.991 to 1.3 (#3697)
5087
- Remove patching of Click that mitigated errors on Python 3.6 with `LANG=C` (#3768)
5188

5289
### Parser
5390

54-
<!-- Changes to the parser or to version autodetection -->
55-
5691
- Add support for the new PEP 695 syntax in Python 3.12 (#3703)
5792

5893
### Performance
5994

60-
<!-- Changes that improve Black's performance. -->
61-
6295
- Speed up _Black_ significantly when the cache is full (#3751)
6396
- Avoid importing `IPython` in a case where we wouldn't need it (#3748)
6497

6598
### Output
6699

67-
<!-- Changes to Black's terminal output and error messages -->
68-
69100
- Use aware UTC datetimes internally, avoids deprecation warning on Python 3.12 (#3728)
70101
- Change verbose logging to exactly mirror _Black_'s logic for source discovery (#3749)
71102

72103
### _Blackd_
73104

74-
<!-- Changes to blackd -->
75-
76105
- The `blackd` argument parser now shows the default values for options in their help
77106
text (#3712)
78107

79108
### Integrations
80109

81-
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
82-
83110
- Black is now tested with
84111
[`PYTHONWARNDEFAULTENCODING = 1`](https://docs.python.org/3/library/io.html#io-encoding-warning)
85112
(#3763)
86113
- Update GitHub Action to display black output in the job summary (#3688)
87-
- Deprecated `set-output` command in CI test to keep up to date with GitHub's
88-
deprecation announcement (#3757)
89114

90115
### Documentation
91116

92117
- Add a CITATION.cff file to the root of the repository, containing metadata on how to
93118
cite this software (#3723)
94-
95-
<!-- Major changes to documentation and policies. Small docs changes
96-
don't need a changelog entry. -->
97-
98-
- Updated the _classes_ and _exceptions_ documentation in Developer reference to match
99-
the latest ccode base. (#3755)
119+
- Update the _classes_ and _exceptions_ documentation in Developer reference to match
120+
the latest code base (#3755)
100121

101122
## 23.3.0
102123

docs/integrations/source_version_control.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Use [pre-commit](https://pre-commit.com/). Once you
77
```yaml
88
repos:
99
- repo: https://github.com/psf/black
10-
rev: 23.3.0
10+
rev: 23.7.0
1111
hooks:
1212
- id: black
1313
# It is recommended to specify the latest version of Python
@@ -31,7 +31,7 @@ include Jupyter Notebooks. To use this hook, simply replace the hook's `id: blac
3131
```yaml
3232
repos:
3333
- repo: https://github.com/psf/black
34-
rev: 23.3.0
34+
rev: 23.7.0
3535
hooks:
3636
- id: black-jupyter
3737
# 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
@@ -193,8 +193,8 @@ configuration file for consistent results across environments.
193193

194194
```console
195195
$ black --version
196-
black, 23.3.0 (compiled: yes)
197-
$ black --required-version 23.3.0 -c "format = 'this'"
196+
black, 23.7.0 (compiled: yes)
197+
$ black --required-version 23.7.0 -c "format = 'this'"
198198
format = "this"
199199
$ black --required-version 31.5b2 -c "still = 'beta?!'"
200200
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
285285

286286
```console
287287
$ black --version
288-
black, 23.3.0
288+
black, 23.7.0
289289
```
290290

291291
#### `--config`

0 commit comments

Comments
 (0)