Skip to content

Commit f6c139c

Browse files
authored
Prepare docs for release 22.6.0 (#3139)
1 parent eb5d175 commit f6c139c

File tree

3 files changed

+42
-24
lines changed

3 files changed

+42
-24
lines changed

CHANGES.md

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,10 @@
1010

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

13-
- Fix unstable formatting involving `# fmt: skip` comments without internal spaces
14-
(#2970)
15-
1613
### Preview style
1714

1815
<!-- Changes that affect Black's preview style -->
1916

20-
- Fixed bug where docstrings with triple quotes could exceed max line length (#3044)
21-
- Remove redundant parentheses around awaited objects (#2991)
22-
- Parentheses around return annotations are now managed (#2990)
23-
- Remove unnecessary parentheses from `with` statements (#2926)
24-
- Remove trailing newlines after code block open (#3035)
25-
2617
### _Blackd_
2718

2819
<!-- Changes to blackd -->
@@ -40,18 +31,48 @@
4031

4132
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
4233

43-
- Add migrate-black.py script to ease migration to black formatted git project (#3038)
44-
4534
### Output
4635

4736
<!-- Changes to Black's terminal output and error messages -->
4837

49-
- Output python version and implementation as part of `--version` flag (#2997)
50-
5138
### Packaging
5239

5340
<!-- Changes to how Black is packaged, such as dependency requirements -->
5441

42+
### Parser
43+
44+
<!-- Changes to the parser or to version autodetection -->
45+
46+
### Performance
47+
48+
<!-- Changes that improve Black's performance. -->
49+
50+
## 22.6.0
51+
52+
### Style
53+
54+
- Fix unstable formatting involving `#fmt: skip` and `# fmt:skip` comments (notice the
55+
lack of spaces) (#2970)
56+
57+
### Preview style
58+
59+
- Docstring quotes are no longer moved if it would violate the line length limit (#3044)
60+
- Parentheses around return annotations are now managed (#2990)
61+
- Remove unnecessary parentheses around awaited objects (#2991)
62+
- Remove unnecessary parentheses in `with` statements (#2926)
63+
- Remove trailing newlines after code block open (#3035)
64+
65+
### Integrations
66+
67+
- Add `scripts/migrate-black.py` script to ease introduction of Black to a Git project
68+
(#3038)
69+
70+
### Output
71+
72+
- Output Python version and implementation as part of `--version` flag (#2997)
73+
74+
### Packaging
75+
5576
- Use `tomli` instead of `tomllib` on Python 3.11 builds where `tomllib` is not
5677
available (#2987)
5778

@@ -62,15 +83,9 @@
6283
- [PEP 646](https://peps.python.org/pep-0646) syntax (for example,
6384
`Array[Batch, *Shape]` or `def fn(*args: *T) -> None`) is now supported (#3071)
6485

65-
<!-- Changes to the parser or to version autodetection -->
66-
67-
### Performance
68-
69-
<!-- Changes that improve Black's performance. -->
70-
7186
### Vim Plugin
7287

73-
- Fixed strtobool function. It didn't parse true/on/false/off. (#3025)
88+
- Fix `strtobool` function. It didn't parse true/on/false/off. (#3025)
7489

7590
## 22.3.0
7691

docs/integrations/source_version_control.md

Lines changed: 6 additions & 3 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: 22.3.0
10+
rev: 22.6.0
1111
hooks:
1212
- id: black
1313
# It is recommended to specify the latest version of Python
@@ -23,8 +23,11 @@ branches or other mutable refs since the hook [won't auto update as you may
2323
expect][pre-commit-mutable-rev].
2424

2525
If you want support for Jupyter Notebooks as well, then replace `id: black` with
26-
`id: black-jupyter` (though note that it's only available from version `21.8b0`
27-
onwards).
26+
`id: black-jupyter`.
27+
28+
```{note}
29+
The `black-jupyter` hook is only available from version 21.8b0 and onwards.
30+
```
2831

2932
[black-tags]: https://github.com/psf/black/tags
3033
[pre-commit-mutable-rev]:

docs/usage_and_configuration/the_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ You can check the version of _Black_ you have installed using the `--version` fl
173173

174174
```console
175175
$ black --version
176-
black, version 22.3.0
176+
black, version 22.6.0
177177
```
178178

179179
An option to require a specific version to be running is also provided.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy