Skip to content

Commit 7044b14

Browse files
Prepare 25.12.0 release (#4891)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5b470f0 commit 7044b14

File tree

4 files changed

+11
-43
lines changed

4 files changed

+11
-43
lines changed

CHANGES.md

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

3-
## Unreleased
4-
5-
<!-- PR authors:
6-
Please include the PR number in the changelog entry, not the issue number -->
3+
## 25.12.0
74

85
### Highlights
96

10-
<!-- Include any especially major or disruptive changes here -->
11-
127
- Black no longer supports running with Python 3.9 (#4842)
138

149
### Stable style
1510

16-
<!-- Changes that affect Black's stable style -->
17-
1811
- Fix bug where comments preceding `# fmt: off`/`# fmt: on` blocks were incorrectly
1912
removed, particularly affecting Jupytext's `# %% [markdown]` comments (#4845)
2013
- Fix crash when multiple `# fmt: skip` comments are used in a multi-part if-clause, on
@@ -23,47 +16,25 @@
2316

2417
### Preview style
2518

26-
<!-- Changes that affect Black's preview style -->
27-
2819
- Fix `fmt: skip` skipping the line after instead of the line it's on (#4855)
2920
- Remove unnecessary parentheses from the left-hand side of assignments while preserving
3021
magic trailing commas and intentional multiline formatting (#4865)
3122
- Fix `fix_fmt_skip_in_one_liners` crashing on `with` statements (#4853)
3223
- Fix `fix_fmt_skip_in_one_liners` crashing on annotated parameters (#4854)
3324
- Fix `# fmt: skip` behavior for deeply nested expressions (#4883)
3425

35-
### Configuration
36-
37-
<!-- Changes to how Black can be configured -->
38-
3926
### Packaging
4027

4128
<!-- Changes to how Black is packaged, such as dependency requirements -->
4229

43-
### Parser
44-
45-
<!-- Changes to the parser or to version autodetection -->
46-
47-
### Performance
48-
49-
<!-- Changes that improve Black's performance. -->
50-
51-
### Output
52-
53-
<!-- Changes to Black's terminal output and error messages -->
54-
55-
### _Blackd_
56-
57-
<!-- Changes to blackd -->
30+
- Releases now include arm64 Windows binaries and wheels (#4814)
5831

5932
### Integrations
6033

6134
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
6235

63-
### Documentation
64-
65-
<!-- Major changes to documentation and policies. Small docs changes
66-
don't need a changelog entry. -->
36+
- Add `output-file` input to GitHub Action `psf/black` to write formatter output to a
37+
file for artifact capture and log cleanliness (#4824)
6738

6839
## 25.11.0
6940

@@ -95,7 +66,6 @@
9566
### Packaging
9667

9768
- Releases now include arm64 Linux binaries (#4773)
98-
- Releases now include arm64 Windows binaries and wheels (#4814)
9969

10070
### Output
10171

@@ -112,8 +82,6 @@
11282
- Enable 3.14 base CI (#4804)
11383
- Enhance GitHub Action `psf/black` to support the `required-version` major-version-only
11484
"stability" format when using pyproject.toml (#4770)
115-
- Add `output-file` input to GitHub Action `psf/black` to write formatter output to a
116-
file for artifact capture and log cleanliness (#4824)
11785
- Improve error message for vim plugin users. It now handles independently vim version
11886
- Vim: Warn on unsupported Vim and Python versions independently (#4772)
11987
- Vim: Print the import paths when importing black fails (#4675)

docs/contributing/release_process.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ To cut a release:
4444
- So unless there already has been a release during this month, `N` should be `0`
4545
- Example: the first release in January, 2022 → `22.1.0`
4646
- `release.py` will calculate this and log to stderr for you copy paste pleasure
47+
1. Double-check that no changelog entries since the last release were put in the wrong
48+
section (e.g., run `git diff origin/stable CHANGES.md`)
4749
1. File a PR editing `CHANGES.md` and the docs to version the latest changes
4850
- Run `python3 scripts/release.py [--debug]` to generate most changes
4951
1. If `release.py` fails manually edit; otherwise, yay, skip this step!
5052
1. Replace the `## Unreleased` header with the version number
5153
1. Remove any empty sections for the current release
5254
1. (_optional_) Read through and copy-edit the changelog (eg. by moving entries,
5355
fixing typos, or rephrasing entries)
54-
1. Double-check that no changelog entries since the last release were put in the
55-
wrong section (e.g., run `git diff origin/stable CHANGES.md`)
5656
1. Update references to the latest version in
5757
{doc}`/integrations/source_version_control` and
5858
{doc}`/usage_and_configuration/the_basics`

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: 25.11.0
11+
rev: 25.12.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: 25.11.0
38+
rev: 25.12.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
@@ -278,8 +278,8 @@ configuration file for consistent results across environments.
278278

279279
```console
280280
$ black --version
281-
black, 25.11.0 (compiled: yes)
282-
$ black --required-version 25.11.0 -c "format = 'this'"
281+
black, 25.12.0 (compiled: yes)
282+
$ black --required-version 25.12.0 -c "format = 'this'"
283283
format = "this"
284284
$ black --required-version 31.5b2 -c "still = 'beta?!'"
285285
Oh no! 💥 💔 💥 The required version does not match the running version!
@@ -380,7 +380,7 @@ You can check the version of _Black_ you have installed using the `--version` fl
380380

381381
```console
382382
$ black --version
383-
black, 25.11.0
383+
black, 25.12.0
384384
```
385385

386386
#### `--config`

0 commit comments

Comments
 (0)