Skip to content

Commit 87928e6

Browse files
Prepare release 26.5.1 (#5140)
* Prepare release 26.5.1 Closes #5137 Signed-off-by: cobalt <[email protected]> * Mention #5137 in changelog this isn't a pr, but there isn't really a pr that fixed this per se Signed-off-by: cobalt <[email protected]> * Update CHANGES.md Co-authored-by: Jelle Zijlstra <[email protected]> --------- Signed-off-by: cobalt <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent c970a49 commit 87928e6

4 files changed

Lines changed: 10 additions & 52 deletions

File tree

‎CHANGES.md‎

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,20 @@
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+
## Version 26.5.1
114

125
### Stable style
136

14-
<!-- Changes that affect Black's stable style -->
15-
167
- Fix unstable formatting of annotated assignments whose subscript annotation contains
17-
an inline comment (e.g. `x: list[ # pyright: ignore[...]\n int\n] = []`). Black no
18-
longer migrates the comment outside the subscript brackets, eliminating the
19-
oscillation between formatter passes reported as #4733 (#5130)
8+
an inline comment (e.g. `x: list[ # pyright: ignore[...]`) (#5130)
209
- Preserve inline comments (including `# type: ignore`) immediately before a
2110
`# fmt: skip` line, avoiding AST equivalence failures (#5139)
2211

23-
### Preview style
24-
25-
<!-- Changes that affect Black's preview style -->
26-
27-
### Configuration
28-
29-
<!-- Changes to how Black can be configured -->
30-
3112
### Packaging
3213

33-
<!-- Changes to how Black is packaged, such as dependency requirements -->
34-
35-
### Parser
36-
37-
<!-- Changes to the parser or to version autodetection -->
38-
39-
### Performance
40-
41-
<!-- Changes that improve Black's performance. -->
42-
43-
### Output
44-
45-
<!-- Changes to Black's terminal output and error messages -->
46-
47-
### _Blackd_
48-
49-
<!-- Changes to blackd -->
50-
51-
### Integrations
52-
53-
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
14+
- Correct the version in the published executables (#5137)
5415

5516
### Documentation
5617

57-
<!-- Major changes to documentation and policies. Small docs changes
58-
don't need a changelog entry. -->
59-
6018
- Add Neovim integration guide covering conform.nvim, ALE, and simple command approaches
6119
(#5124)
6220

‎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.5.0
114+
rev: 26.5.1
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.5.0
11+
rev: 26.5.1
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.5.0
37+
rev: 26.5.1
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.5.0
67+
rev: 26.5.1
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.5.0 (compiled: yes)
284-
$ black --required-version 26.5.0 -c "format = 'this'"
283+
black, 26.5.1 (compiled: yes)
284+
$ black --required-version 26.5.1 -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!
@@ -388,7 +388,7 @@ You can check the version of _Black_ you have installed using the `--version` fl
388388

389389
```console
390390
$ black --version
391-
black, 26.5.0
391+
black, 26.5.1
392392
```
393393

394394
#### `--config`

0 commit comments

Comments
 (0)