|
6 | 6 |
|
7 | 7 | <!-- Include any especially major or disruptive changes here -->
|
8 | 8 |
|
9 |
| -### Style |
| 9 | +### Stable style |
10 | 10 |
|
11 | 11 | <!-- Changes that affect Black's stable style -->
|
12 | 12 |
|
| 13 | +### Preview style |
| 14 | + |
| 15 | +<!-- Changes that affect Black's preview style --> |
| 16 | + |
| 17 | +### Configuration |
| 18 | + |
| 19 | +<!-- Changes to how Black can be configured --> |
| 20 | + |
| 21 | +### Packaging |
| 22 | + |
| 23 | +<!-- Changes to how Black is packaged, such as dependency requirements --> |
| 24 | + |
| 25 | +### Parser |
| 26 | + |
| 27 | +<!-- Changes to the parser or to version autodetection --> |
| 28 | + |
| 29 | +### Performance |
| 30 | + |
| 31 | +<!-- Changes that improve Black's performance. --> |
| 32 | + |
| 33 | +### Output |
| 34 | + |
| 35 | +<!-- Changes to Black's terminal output and error messages --> |
| 36 | + |
| 37 | +### _Blackd_ |
| 38 | + |
| 39 | +<!-- Changes to blackd --> |
| 40 | + |
| 41 | +### Integrations |
| 42 | + |
| 43 | +<!-- For example, Docker, GitHub Actions, pre-commit, editors --> |
| 44 | + |
| 45 | +### Documentation |
| 46 | + |
| 47 | +<!-- Major changes to documentation and policies. Small docs changes |
| 48 | + don't need a changelog entry. --> |
| 49 | + |
| 50 | +## 22.8.0 |
| 51 | + |
| 52 | +### Highlights |
| 53 | + |
| 54 | +- Python 3.11 is now supported, except for _blackd_ as aiohttp does not support 3.11 as |
| 55 | + of publishing (#3234) |
| 56 | +- This is the last release that supports running _Black_ on Python 3.6 (formatting 3.6 |
| 57 | + code will continue to be supported until further notice) |
| 58 | +- Reword the stability policy to say that we may, in rare cases, make changes that |
| 59 | + affect code that was not previously formatted by _Black_ (#3155) |
| 60 | + |
| 61 | +### Stable style |
| 62 | + |
13 | 63 | - Fix an infinite loop when using `# fmt: on/off` in the middle of an expression or code
|
14 | 64 | block (#3158)
|
15 |
| -- Fix incorrect handling of `# fmt: skip` on colon `:` lines. (#3148) |
| 65 | +- Fix incorrect handling of `# fmt: skip` on colon (`:`) lines (#3148) |
16 | 66 | - Comments are no longer deleted when a line had spaces removed around power operators
|
17 | 67 | (#2874)
|
18 | 68 |
|
19 | 69 | ### Preview style
|
20 | 70 |
|
21 |
| -<!-- Changes that affect Black's preview style --> |
22 |
| - |
23 | 71 | - Single-character closing docstring quotes are no longer moved to their own line as
|
24 | 72 | this is invalid. This was a bug introduced in version 22.6.0. (#3166)
|
25 | 73 | - `--skip-string-normalization` / `-S` now prevents docstring prefixes from being
|
|
33 | 81 |
|
34 | 82 | ### _Blackd_
|
35 | 83 |
|
36 |
| -<!-- Changes to blackd --> |
37 |
| - |
38 |
| -- `blackd` now supports preview style via `X-Preview` header (#3217) |
| 84 | +- `blackd` now supports enabling the preview style via the `X-Preview` header (#3217) |
39 | 85 |
|
40 | 86 | ### Configuration
|
41 | 87 |
|
42 |
| -<!-- Changes to how Black can be configured --> |
43 |
| - |
44 |
| -- Black now uses the presence of debug f-strings to detect target version. (#3215) |
| 88 | +- Black now uses the presence of debug f-strings to detect target version (#3215) |
45 | 89 | - Fix misdetection of project root and verbose logging of sources in cases involving
|
46 | 90 | `--stdin-filename` (#3216)
|
47 | 91 | - Immediate `.gitignore` files in source directories given on the command line are now
|
|
50 | 94 |
|
51 | 95 | ### Documentation
|
52 | 96 |
|
53 |
| -<!-- Major changes to documentation and policies. Small docs changes |
54 |
| - don't need a changelog entry. --> |
55 |
| - |
56 |
| -- Reword the stability policy to say that we may, in rare cases, make changes that |
57 |
| - affect code that was not previously formatted by _Black_ (#3155) |
58 | 97 | - Recommend using BlackConnect in IntelliJ IDEs (#3150)
|
59 | 98 |
|
60 | 99 | ### Integrations
|
61 | 100 |
|
62 |
| -<!-- For example, Docker, GitHub Actions, pre-commit, editors --> |
63 |
| - |
64 | 101 | - Vim plugin: prefix messages with `Black: ` so it's clear they come from Black (#3194)
|
65 | 102 | - Docker: changed to a /opt/venv installation + added to PATH to be available to
|
66 | 103 | non-root users (#3202)
|
67 | 104 |
|
68 | 105 | ### Output
|
69 | 106 |
|
70 |
| -<!-- Changes to Black's terminal output and error messages --> |
71 |
| - |
72 | 107 | - Change from deprecated `asyncio.get_event_loop()` to create our event loop which
|
73 | 108 | removes DeprecationWarning (#3164)
|
74 |
| -- Remove logging from internal `blib2to3` library since it regularily emits error logs |
| 109 | +- Remove logging from internal `blib2to3` library since it regularly emits error logs |
75 | 110 | about failed caching that can and should be ignored (#3193)
|
76 | 111 |
|
77 |
| -### Packaging |
78 |
| - |
79 |
| -<!-- Changes to how Black is packaged, such as dependency requirements --> |
80 |
| - |
81 |
| -- Python 3.11 is now supported, except for `blackd` (#3234) |
82 |
| - |
83 | 112 | ### Parser
|
84 | 113 |
|
85 |
| -<!-- Changes to the parser or to version autodetection --> |
86 |
| - |
87 | 114 | - Type comments are now included in the AST equivalence check consistently so accidental
|
88 | 115 | deletion raises an error. Though type comments can't be tracked when running on PyPy
|
89 | 116 | 3.7 due to standard library limitations. (#2874)
|
90 | 117 |
|
91 | 118 | ### Performance
|
92 | 119 |
|
93 |
| -<!-- Changes that improve Black's performance. --> |
94 |
| - |
95 | 120 | - Reduce Black's startup time when formatting a single file by 15-30% (#3211)
|
96 | 121 |
|
97 | 122 | ## 22.6.0
|
|
0 commit comments