From 2ddea293a88919650266472186620a98a4a8bb37 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Fri, 9 Dec 2022 07:49:43 -0800 Subject: [PATCH] Prepare release 22.12.0 (#3413) --- CHANGES.md | 58 ++++++++++++++------- docs/integrations/source_version_control.md | 2 +- docs/usage_and_configuration/the_basics.md | 2 +- 3 files changed, 40 insertions(+), 22 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 992b3800405..20ae65d36f3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -14,23 +14,10 @@ -- Enforce empty lines before classes and functions with sticky leading comments (#3302) -- Reformat empty and whitespace-only files as either an empty file (if no newline is - present) or as a single newline character (if a newline is present) (#3348) -- Implicitly concatenated strings used as function args are now wrapped inside - parentheses (#3307) -- Correctly handle trailing commas that are inside a line's leading non-nested parens - (#3370) - ### Configuration -- Fix incorrectly applied .gitignore rules by considering the .gitignore location and - the relative path to the target file (#3338) -- Fix incorrectly ignoring .gitignore presence when more than one source directory is - specified (#3336) - ### Packaging @@ -39,10 +26,6 @@ -- Parsing support has been added for walruses inside generator expression that are - passed as function args (for example, - `any(match := my_re.match(text) for text in texts)`) (#3327). - ### Performance @@ -59,14 +42,49 @@ -- Vim plugin: Optionally allow using the system installation of Black via - `let g:black_use_virtualenv = 0`(#3309) - ### Documentation +## 22.12.0 + +### Preview style + + + +- Enforce empty lines before classes and functions with sticky leading comments (#3302) +- Reformat empty and whitespace-only files as either an empty file (if no newline is + present) or as a single newline character (if a newline is present) (#3348) +- Implicitly concatenated strings used as function args are now wrapped inside + parentheses (#3307) +- Correctly handle trailing commas that are inside a line's leading non-nested parens + (#3370) + +### Configuration + + + +- Fix incorrectly applied `.gitignore` rules by considering the `.gitignore` location + and the relative path to the target file (#3338) +- Fix incorrectly ignoring `.gitignore` presence when more than one source directory is + specified (#3336) + +### Parser + + + +- Parsing support has been added for walruses inside generator expression that are + passed as function args (for example, + `any(match := my_re.match(text) for text in texts)`) (#3327). + +### Integrations + + + +- Vim plugin: Optionally allow using the system installation of Black via + `let g:black_use_virtualenv = 0`(#3309) + ## 22.10.0 ### Highlights diff --git a/docs/integrations/source_version_control.md b/docs/integrations/source_version_control.md index 4189b5c4b06..712b9a688d1 100644 --- a/docs/integrations/source_version_control.md +++ b/docs/integrations/source_version_control.md @@ -7,7 +7,7 @@ Use [pre-commit](https://pre-commit.com/). Once you ```yaml repos: - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 22.12.0 hooks: - id: black # It is recommended to specify the latest version of Python diff --git a/docs/usage_and_configuration/the_basics.md b/docs/usage_and_configuration/the_basics.md index 80897532a68..3dab644f2c8 100644 --- a/docs/usage_and_configuration/the_basics.md +++ b/docs/usage_and_configuration/the_basics.md @@ -175,7 +175,7 @@ You can check the version of _Black_ you have installed using the `--version` fl ```console $ black --version -black, version 22.10.0 +black, version 22.12.0 ``` An option to require a specific version to be running is also provided.