|
14 | 14 |
|
15 | 15 | <!-- Changes that affect Black's preview style -->
|
16 | 16 |
|
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 |
| - |
25 | 17 | ### Configuration
|
26 | 18 |
|
27 | 19 | <!-- Changes to how Black can be configured -->
|
28 | 20 |
|
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 |
| - |
34 | 21 | ### Packaging
|
35 | 22 |
|
36 | 23 | <!-- Changes to how Black is packaged, such as dependency requirements -->
|
|
39 | 26 |
|
40 | 27 | <!-- Changes to the parser or to version autodetection -->
|
41 | 28 |
|
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 |
| - |
46 | 29 | ### Performance
|
47 | 30 |
|
48 | 31 | <!-- Changes that improve Black's performance. -->
|
|
59 | 42 |
|
60 | 43 | <!-- For example, Docker, GitHub Actions, pre-commit, editors -->
|
61 | 44 |
|
62 |
| -- Vim plugin: Optionally allow using the system installation of Black via |
63 |
| - `let g:black_use_virtualenv = 0`(#3309) |
64 |
| - |
65 | 45 | ### Documentation
|
66 | 46 |
|
67 | 47 | <!-- Major changes to documentation and policies. Small docs changes
|
68 | 48 | don't need a changelog entry. -->
|
69 | 49 |
|
| 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 | + |
70 | 88 | ## 22.10.0
|
71 | 89 |
|
72 | 90 | ### Highlights
|
|
0 commit comments