Skip to content

Commit 35ea679

Browse files
Prepare release 26.3.0 (#5032)
1 parent 4d81750 commit 35ea679

File tree

4 files changed

+10
-38
lines changed

4 files changed

+10
-38
lines changed

CHANGES.md

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,27 @@
11
# Change Log
22

3-
## Unreleased
4-
5-
<!-- PR authors:
6-
Please include the PR number in the changelog entry, not the issue number -->
7-
8-
### Highlights
9-
10-
<!-- Include any especially major or disruptive changes here -->
3+
## 26.3.0
114

125
### Stable style
136

14-
<!-- Changes that affect Black's stable style -->
15-
167
- Don't double-decode input, causing non-UTF-8 files to be corrupted (#4964)
178
- Fix crash on standalone comment in lambda default arguments (#4993)
9+
- Preserve parentheses when `# type: ignore` comments would be merged with other
10+
comments on the same line, preventing AST equivalence failures (#4888)
1811

1912
### Preview style
2013

21-
<!-- Changes that affect Black's preview style -->
22-
2314
- Fix bug where `if` guards in `case` blocks were incorrectly split when the pattern had
2415
a trailing comma (#4884)
2516
- Fix `string_processing` crashing on unassigned long string literals with trailing
2617
commas (one-item tuples) (#4929)
2718
- Simplify implementation of the power operator "hugging" logic (#4918)
2819

29-
### Configuration
30-
31-
<!-- Changes to how Black can be configured -->
32-
3320
### Packaging
3421

35-
<!-- Changes to how Black is packaged, such as dependency requirements -->
36-
3722
- Fix shutdown errors in PyInstaller builds on macOS by disabling multiprocessing in
3823
frozen environments (#4930)
3924

40-
### Parser
41-
42-
<!-- Changes to the parser or to version autodetection -->
43-
4425
### Performance
4526

4627
- Introduce winloop for windows as an alternative to uvloop (#4996)
@@ -52,8 +33,6 @@
5233

5334
### Output
5435

55-
<!-- Changes to Black's terminal output and error messages -->
56-
5736
- Emit a clear warning when the target Python version is newer than the running Python
5837
version, since AST safety checks cannot parse newer syntax. Also replace the
5938
misleading "INTERNAL ERROR" message with an actionable error explaining the version
@@ -66,8 +45,6 @@
6645

6746
### Integrations
6847

69-
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
70-
7148
- Remove unused gallery script (#5030)
7249
- Harden parsing of `black` requirements in the GitHub Action when `use_pyproject` is
7350
enabled so that only version specifiers are accepted and direct references such as
@@ -78,9 +55,6 @@
7855

7956
### Documentation
8057

81-
<!-- Major changes to documentation and policies. Small docs changes
82-
don't need a changelog entry. -->
83-
8458
- Expand preview style documentation with detailed examples for `wrap_comprehension_in`,
8559
`simplify_power_operator_hugging`, and `wrap_long_dict_values_in_parens` features
8660
(#4987)
@@ -160,8 +134,6 @@ directories.
160134
- Fix crash when multiple `# fmt: skip` comments are used in a multi-part if-clause, on
161135
string literals, or on dictionary entries with long lines (#4872)
162136
- Fix possible crash when `fmt: ` directives aren't on the top level (#4856)
163-
- Preserve parentheses when `# type: ignore` comments would be merged with other
164-
comments on the same line, preventing AST equivalence failures (#4888)
165137

166138
### Preview style
167139

docs/guides/using_black_with_jupyter_notebooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Simply replace the `black` hook with `black-jupyter`.
111111
```yaml
112112
repos:
113113
- repo: https://github.com/psf/black-pre-commit-mirror
114-
rev: 26.1.0
114+
rev: 26.3.0
115115
hooks:
116116
- id: black-jupyter
117117
language_version: python3.11

docs/integrations/source_version_control.md

Lines changed: 3 additions & 3 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: 26.1.0
11+
rev: 26.3.0
1212
hooks:
1313
- id: black
1414
# It is recommended to specify the latest version of Python
@@ -34,7 +34,7 @@ include Jupyter Notebooks. To use this hook, simply replace the hook's `id: blac
3434
```yaml
3535
repos:
3636
- repo: https://github.com/psf/black-pre-commit-mirror
37-
rev: 26.1.0
37+
rev: 26.3.0
3838
hooks:
3939
- id: black-jupyter
4040
language_version: python3.11
@@ -64,7 +64,7 @@ Configure exclusions directly in `.pre-commit-config.yaml`:
6464
```yaml
6565
repos:
6666
- repo: https://github.com/psf/black-pre-commit-mirror
67-
rev: 26.1.0
67+
rev: 26.3.0
6868
hooks:
6969
- id: black
7070
exclude: ^migrations/|^generated/

docs/usage_and_configuration/the_basics.md

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

281281
```console
282282
$ black --version
283-
black, 26.1.0 (compiled: yes)
284-
$ black --required-version 26.1.0 -c "format = 'this'"
283+
black, 26.3.0 (compiled: yes)
284+
$ black --required-version 26.3.0 -c "format = 'this'"
285285
format = "this"
286286
$ black --required-version 31.5b2 -c "still = 'beta?!'"
287287
Oh no! 💥 💔 💥 The required version does not match the running version!
@@ -382,7 +382,7 @@ You can check the version of _Black_ you have installed using the `--version` fl
382382

383383
```console
384384
$ black --version
385-
black, 26.1.0
385+
black, 26.3.0
386386
```
387387

388388
#### `--config`

0 commit comments

Comments
 (0)