Skip to content

Commit

Permalink
Prepare release 22.3.0 (#2968)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Mar 28, 2022
1 parent e9681a4 commit ae2c075
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 22 deletions.
57 changes: 37 additions & 20 deletions CHANGES.md
Expand Up @@ -14,11 +14,6 @@

<!-- 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_

<!-- Changes to blackd -->
Expand All @@ -27,34 +22,62 @@

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

### Documentation

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

### Integrations

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

### Output

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

### Packaging

<!-- 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

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

- Update pylint config documentation (#2931)

### Integrations

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

- Move test to disable plugin in Vim/Neovim, which speeds up loading (#2896)

### Output

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

- In verbose, mode, log when _Black_ is using user-level config (#2861)

### Packaging

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

- 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`
(#2903)
Expand All @@ -66,12 +89,6 @@
- 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).

- Fix handling of directory junctions on Windows (#2904)

### Performance

<!-- Changes that improve Black's performance. -->

## 22.1.0

At long last, _Black_ is no longer a beta product! This is the first non-beta release
Expand Down
2 changes: 1 addition & 1 deletion docs/integrations/source_version_control.md
Expand Up @@ -7,7 +7,7 @@ Use [pre-commit](https://pre-commit.com/). Once you
```yaml
repos:
- repo: https://github.com/psf/black
rev: 22.1.0
rev: 22.3.0
hooks:
- id: black
# It is recommended to specify the latest version of Python
Expand Down
2 changes: 1 addition & 1 deletion docs/usage_and_configuration/the_basics.md
Expand Up @@ -173,7 +173,7 @@ You can check the version of _Black_ you have installed using the `--version` fl

```console
$ 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.
Expand Down

0 comments on commit ae2c075

Please sign in to comment.