Prepare release 22.10.0 (#3311)
This commit is contained in:
parent
4da0851809
commit
27d20144a7
72
CHANGES.md
72
CHANGES.md
@ -6,42 +6,22 @@
|
|||||||
|
|
||||||
<!-- Include any especially major or disruptive changes here -->
|
<!-- Include any especially major or disruptive changes here -->
|
||||||
|
|
||||||
- Runtime support for Python 3.6 has been removed. Formatting 3.6 code will still be
|
|
||||||
supported until further notice.
|
|
||||||
|
|
||||||
### Stable style
|
### Stable style
|
||||||
|
|
||||||
<!-- Changes that affect Black's stable style -->
|
<!-- Changes that affect Black's stable style -->
|
||||||
|
|
||||||
- Fix a crash when `# fmt: on` is used on a different block level than `# fmt: off`
|
|
||||||
(#3281)
|
|
||||||
|
|
||||||
### Preview style
|
### Preview style
|
||||||
|
|
||||||
<!-- Changes that affect Black's preview style -->
|
<!-- Changes that affect Black's preview style -->
|
||||||
|
|
||||||
- Fix a crash when formatting some dicts with parenthesis-wrapped long string keys
|
|
||||||
(#3262)
|
|
||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
<!-- Changes to how Black can be configured -->
|
<!-- Changes to how Black can be configured -->
|
||||||
|
|
||||||
- `.ipynb_checkpoints` directories are now excluded by default (#3293)
|
|
||||||
- Add `--skip-source-first-line` / `-x` option to ignore the first line of source code
|
|
||||||
while formatting (#3299)
|
|
||||||
|
|
||||||
### Packaging
|
### Packaging
|
||||||
|
|
||||||
<!-- Changes to how Black is packaged, such as dependency requirements -->
|
<!-- Changes to how Black is packaged, such as dependency requirements -->
|
||||||
|
|
||||||
- Executables made with PyInstaller will no longer crash when formatting several files
|
|
||||||
at once on macOS. Native x86-64 executables for macOS are available once again.
|
|
||||||
(#3275)
|
|
||||||
- Hatchling is now used as the build backend. This will not have any effect for users
|
|
||||||
who install Black with its wheels from PyPI. (#3233)
|
|
||||||
- Faster compiled wheels are now available for CPython 3.11 (#3276)
|
|
||||||
|
|
||||||
### Parser
|
### Parser
|
||||||
|
|
||||||
<!-- Changes to the parser or to version autodetection -->
|
<!-- Changes to the parser or to version autodetection -->
|
||||||
@ -56,22 +36,61 @@
|
|||||||
|
|
||||||
### _Blackd_
|
### _Blackd_
|
||||||
|
|
||||||
- Windows style (CRLF) newlines will be preserved (#3257).
|
<!-- Changes to blackd -->
|
||||||
|
|
||||||
### Integrations
|
### Integrations
|
||||||
|
|
||||||
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
|
<!-- For example, Docker, GitHub Actions, pre-commit, editors -->
|
||||||
|
|
||||||
- Update GitHub Action to support formatting of Jupyter Notebook files via a `jupyter`
|
|
||||||
option (#3282)
|
|
||||||
- Update GitHub Action to support use of version specifiers (e.g. `<23`) for Black
|
|
||||||
version (#3265)
|
|
||||||
|
|
||||||
### 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. -->
|
||||||
|
|
||||||
|
## 22.10.0
|
||||||
|
|
||||||
|
### Highlights
|
||||||
|
|
||||||
|
- Runtime support for Python 3.6 has been removed. Formatting 3.6 code will still be
|
||||||
|
supported until further notice.
|
||||||
|
|
||||||
|
### Stable style
|
||||||
|
|
||||||
|
- Fix a crash when `# fmt: on` is used on a different block level than `# fmt: off`
|
||||||
|
(#3281)
|
||||||
|
|
||||||
|
### Preview style
|
||||||
|
|
||||||
|
- Fix a crash when formatting some dicts with parenthesis-wrapped long string keys
|
||||||
|
(#3262)
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
- `.ipynb_checkpoints` directories are now excluded by default (#3293)
|
||||||
|
- Add `--skip-source-first-line` / `-x` option to ignore the first line of source code
|
||||||
|
while formatting (#3299)
|
||||||
|
|
||||||
|
### Packaging
|
||||||
|
|
||||||
|
- Executables made with PyInstaller will no longer crash when formatting several files
|
||||||
|
at once on macOS. Native x86-64 executables for macOS are available once again.
|
||||||
|
(#3275)
|
||||||
|
- Hatchling is now used as the build backend. This will not have any effect for users
|
||||||
|
who install Black with its wheels from PyPI. (#3233)
|
||||||
|
- Faster compiled wheels are now available for CPython 3.11 (#3276)
|
||||||
|
|
||||||
|
### _Blackd_
|
||||||
|
|
||||||
|
- Windows style (CRLF) newlines will be preserved (#3257).
|
||||||
|
|
||||||
|
### Integrations
|
||||||
|
|
||||||
|
- Vim plugin: add flag (`g:black_preview`) to enable/disable the preview style (#3246)
|
||||||
|
- Update GitHub Action to support formatting of Jupyter Notebook files via a `jupyter`
|
||||||
|
option (#3282)
|
||||||
|
- Update GitHub Action to support use of version specifiers (e.g. `<23`) for Black
|
||||||
|
version (#3265)
|
||||||
|
|
||||||
## 22.8.0
|
## 22.8.0
|
||||||
|
|
||||||
### Highlights
|
### Highlights
|
||||||
@ -126,7 +145,6 @@
|
|||||||
- Vim plugin: prefix messages with `Black: ` so it's clear they come from Black (#3194)
|
- Vim plugin: prefix messages with `Black: ` so it's clear they come from Black (#3194)
|
||||||
- Docker: changed to a /opt/venv installation + added to PATH to be available to
|
- Docker: changed to a /opt/venv installation + added to PATH to be available to
|
||||||
non-root users (#3202)
|
non-root users (#3202)
|
||||||
- Vim plugin: add flag (`g:black_preview`) to enable/disable the preview style (#3246)
|
|
||||||
|
|
||||||
### Output
|
### Output
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ Support for formatting Python 2 code was removed in version 22.0. While we've ma
|
|||||||
plans to stop supporting older Python 3 minor versions immediately, their support might
|
plans to stop supporting older Python 3 minor versions immediately, their support might
|
||||||
also be removed some time in the future without a deprecation period.
|
also be removed some time in the future without a deprecation period.
|
||||||
|
|
||||||
Runtime support for 3.6 was removed in version 22.9.0.
|
Runtime support for 3.6 was removed in version 22.10.0.
|
||||||
|
|
||||||
## Why does my linter or typechecker complain after I format my code?
|
## Why does my linter or typechecker complain after I format my code?
|
||||||
|
|
||||||
|
@ -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.8.0
|
rev: 22.10.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.8.0
|
black, version 22.10.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