Prepare release 22.3.0 (#2968)
This commit is contained in:
parent
e9681a40dc
commit
ae2c0758c9
61
CHANGES.md
61
CHANGES.md
@ -14,11 +14,6 @@
|
|||||||
|
|
||||||
<!-- Changes that affect Black's preview style -->
|
<!-- Changes that affect Black's preview style -->
|
||||||
|
|
||||||
- Code cell separators `#%%` are now standardised to `# %%` (#2919)
|
|
||||||
- Remove unnecessary parentheses from `except` statements (#2939)
|
|
||||||
- Remove unnecessary parentheses from tuple unpacking in `for` loops (#2945)
|
|
||||||
- Avoid magic-trailing-comma in single-element subscripts (#2942)
|
|
||||||
|
|
||||||
### _Blackd_
|
### _Blackd_
|
||||||
|
|
||||||
<!-- Changes to blackd -->
|
<!-- Changes to blackd -->
|
||||||
@ -27,34 +22,62 @@
|
|||||||
|
|
||||||
<!-- Changes to how Black can be configured -->
|
<!-- Changes to how Black can be configured -->
|
||||||
|
|
||||||
- Do not format `__pypackages__` directories by default (#2836)
|
|
||||||
- Add support for specifying stable version with `--required-version` (#2832).
|
|
||||||
- Avoid crashing when the user has no homedir (#2814)
|
|
||||||
- Avoid crashing when md5 is not available (#2905)
|
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
|
|
||||||
<!-- Major changes to documentation and policies. Small docs changes
|
<!-- Major changes to documentation and policies. Small docs changes
|
||||||
don't need a changelog entry. -->
|
don't need a changelog entry. -->
|
||||||
|
|
||||||
- Update pylint config documentation (#2931)
|
|
||||||
|
|
||||||
### Integrations
|
### Integrations
|
||||||
|
|
||||||
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
|
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
|
||||||
|
|
||||||
- Move test to disable plugin in Vim/Neovim, which speeds up loading (#2896)
|
|
||||||
|
|
||||||
### Output
|
### Output
|
||||||
|
|
||||||
<!-- Changes to Black's terminal output and error messages -->
|
<!-- Changes to Black's terminal output and error messages -->
|
||||||
|
|
||||||
- In verbose, mode, log when _Black_ is using user-level config (#2861)
|
|
||||||
|
|
||||||
### Packaging
|
### Packaging
|
||||||
|
|
||||||
<!-- Changes to how Black is packaged, such as dependency requirements -->
|
<!-- Changes to how Black is packaged, such as dependency requirements -->
|
||||||
|
|
||||||
|
### Parser
|
||||||
|
|
||||||
|
<!-- Changes to the parser or to version autodetection -->
|
||||||
|
|
||||||
|
### Performance
|
||||||
|
|
||||||
|
<!-- Changes that improve Black's performance. -->
|
||||||
|
|
||||||
|
## 22.3.0
|
||||||
|
|
||||||
|
### Preview style
|
||||||
|
|
||||||
|
- Code cell separators `#%%` are now standardised to `# %%` (#2919)
|
||||||
|
- Remove unnecessary parentheses from `except` statements (#2939)
|
||||||
|
- Remove unnecessary parentheses from tuple unpacking in `for` loops (#2945)
|
||||||
|
- Avoid magic-trailing-comma in single-element subscripts (#2942)
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
- Do not format `__pypackages__` directories by default (#2836)
|
||||||
|
- Add support for specifying stable version with `--required-version` (#2832).
|
||||||
|
- Avoid crashing when the user has no homedir (#2814)
|
||||||
|
- Avoid crashing when md5 is not available (#2905)
|
||||||
|
- Fix handling of directory junctions on Windows (#2904)
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
- Update pylint config documentation (#2931)
|
||||||
|
|
||||||
|
### Integrations
|
||||||
|
|
||||||
|
- Move test to disable plugin in Vim/Neovim, which speeds up loading (#2896)
|
||||||
|
|
||||||
|
### Output
|
||||||
|
|
||||||
|
- In verbose, mode, log when _Black_ is using user-level config (#2861)
|
||||||
|
|
||||||
|
### Packaging
|
||||||
|
|
||||||
- Fix Black to work with Click 8.1.0 (#2966)
|
- Fix Black to work with Click 8.1.0 (#2966)
|
||||||
- On Python 3.11 and newer, use the standard library's `tomllib` instead of `tomli`
|
- On Python 3.11 and newer, use the standard library's `tomllib` instead of `tomli`
|
||||||
(#2903)
|
(#2903)
|
||||||
@ -66,12 +89,6 @@
|
|||||||
- Black can now parse starred expressions in the target of `for` and `async for`
|
- Black can now parse starred expressions in the target of `for` and `async for`
|
||||||
statements, e.g `for item in *items_1, *items_2: pass` (#2879).
|
statements, e.g `for item in *items_1, *items_2: pass` (#2879).
|
||||||
|
|
||||||
- Fix handling of directory junctions on Windows (#2904)
|
|
||||||
|
|
||||||
### Performance
|
|
||||||
|
|
||||||
<!-- Changes that improve Black's performance. -->
|
|
||||||
|
|
||||||
## 22.1.0
|
## 22.1.0
|
||||||
|
|
||||||
At long last, _Black_ is no longer a beta product! This is the first non-beta release
|
At long last, _Black_ is no longer a beta product! This is the first non-beta release
|
||||||
|
@ -7,7 +7,7 @@ Use [pre-commit](https://pre-commit.com/). Once you
|
|||||||
```yaml
|
```yaml
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 22.1.0
|
rev: 22.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
# It is recommended to specify the latest version of Python
|
# It is recommended to specify the latest version of Python
|
||||||
|
@ -173,7 +173,7 @@ You can check the version of _Black_ you have installed using the `--version` fl
|
|||||||
|
|
||||||
```console
|
```console
|
||||||
$ black --version
|
$ black --version
|
||||||
black, version 22.1.0
|
black, version 22.3.0
|
||||||
```
|
```
|
||||||
|
|
||||||
An option to require a specific version to be running is also provided.
|
An option to require a specific version to be running is also provided.
|
||||||
|
Loading…
Reference in New Issue
Block a user