Skip to content

Commit 2ddea29

Browse files
Prepare release 22.12.0 (#3413)
1 parent 5b1443a commit 2ddea29

File tree

3 files changed

+40
-22
lines changed

3 files changed

+40
-22
lines changed

CHANGES.md

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,10 @@
1414

1515
<!-- Changes that affect Black's preview style -->
1616

17-
- Enforce empty lines before classes and functions with sticky leading comments (#3302)
18-
- Reformat empty and whitespace-only files as either an empty file (if no newline is
19-
present) or as a single newline character (if a newline is present) (#3348)
20-
- Implicitly concatenated strings used as function args are now wrapped inside
21-
parentheses (#3307)
22-
- Correctly handle trailing commas that are inside a line's leading non-nested parens
23-
(#3370)
24-
2517
### Configuration
2618

2719
<!-- Changes to how Black can be configured -->
2820

29-
- Fix incorrectly applied .gitignore rules by considering the .gitignore location and
30-
the relative path to the target file (#3338)
31-
- Fix incorrectly ignoring .gitignore presence when more than one source directory is
32-
specified (#3336)
33-
3421
### Packaging
3522

3623
<!-- Changes to how Black is packaged, such as dependency requirements -->
@@ -39,10 +26,6 @@
3926

4027
<!-- Changes to the parser or to version autodetection -->
4128

42-
- Parsing support has been added for walruses inside generator expression that are
43-
passed as function args (for example,
44-
`any(match := my_re.match(text) for text in texts)`) (#3327).
45-
4629
### Performance
4730

4831
<!-- Changes that improve Black's performance. -->
@@ -59,14 +42,49 @@
5942

6043
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
6144

62-
- Vim plugin: Optionally allow using the system installation of Black via
63-
`let g:black_use_virtualenv = 0`(#3309)
64-
6545
### Documentation
6646

6747
<!-- Major changes to documentation and policies. Small docs changes
6848
don't need a changelog entry. -->
6949

50+
## 22.12.0
51+
52+
### Preview style
53+
54+
<!-- Changes that affect Black's preview style -->
55+
56+
- Enforce empty lines before classes and functions with sticky leading comments (#3302)
57+
- Reformat empty and whitespace-only files as either an empty file (if no newline is
58+
present) or as a single newline character (if a newline is present) (#3348)
59+
- Implicitly concatenated strings used as function args are now wrapped inside
60+
parentheses (#3307)
61+
- Correctly handle trailing commas that are inside a line's leading non-nested parens
62+
(#3370)
63+
64+
### Configuration
65+
66+
<!-- Changes to how Black can be configured -->
67+
68+
- Fix incorrectly applied `.gitignore` rules by considering the `.gitignore` location
69+
and the relative path to the target file (#3338)
70+
- Fix incorrectly ignoring `.gitignore` presence when more than one source directory is
71+
specified (#3336)
72+
73+
### Parser
74+
75+
<!-- Changes to the parser or to version autodetection -->
76+
77+
- Parsing support has been added for walruses inside generator expression that are
78+
passed as function args (for example,
79+
`any(match := my_re.match(text) for text in texts)`) (#3327).
80+
81+
### Integrations
82+
83+
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
84+
85+
- Vim plugin: Optionally allow using the system installation of Black via
86+
`let g:black_use_virtualenv = 0`(#3309)
87+
7088
## 22.10.0
7189

7290
### Highlights

docs/integrations/source_version_control.md

Lines changed: 1 addition & 1 deletion
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.10.0
10+
rev: 22.12.0
1111
hooks:
1212
- id: black
1313
# It is recommended to specify the latest version of Python

docs/usage_and_configuration/the_basics.md

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

176176
```console
177177
$ black --version
178-
black, version 22.10.0
178+
black, version 22.12.0
179179
```
180180

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

0 commit comments

Comments
 (0)