Sourced from black's releases.
\n\n\n22.6.0
\nStyle
\n\n
\n- Fix unstable formatting involving
\n#fmt: skip
and# fmt:skip
comments (notice the lack of spaces) (#2970)Preview style
\n\n
\n- Docstring quotes are no longer moved if it would violate the line length limit (#3044)
\n- Parentheses around return annotations are now managed (#2990)
\n- Remove unnecessary parentheses around awaited objects (#2991)
\n- Remove unnecessary parentheses in
\nwith
statements (#2926)- Remove trailing newlines after code block open (#3035)
\nIntegrations
\n\n
\n- Add
\nscripts/migrate-black.py
script to ease introduction of Black to a Git project (#3038)Output
\n\n
\n- Output Python version and implementation as part of
\n--version
flag (#2997)Packaging
\n\n
\n- Use
\ntomli
instead oftomllib
on Python 3.11 builds wheretomllib
is not available (#2987)Parser
\n\n
\n- PEP 654 syntax (for example,
\nexcept *ExceptionGroup:
) is now supported (#3016)- PEP 646 syntax (for example,
\nArray[Batch, *Shape]
ordef fn(*args: *T) -> None
) is now supported (#3071)Vim Plugin
\n\n
\n- Fix
\nstrtobool
function. It didn't parse true/on/false/off. (#3025)Full Changelog: https://github.com/psf/black/compare/22.3.0...22.6.0
\n
\nThank you!
\n\n
\n- \n
@\u200bjpy-git
for improving our parentheses formatting significantly- \n
@\u200bsiuryan
for fixing a fmt: skip bug, making it a little less annoying to use :)- \n
@\u200bisidentical
for implementing support for PEP 654 and 646 syntax- \n
@\u200bdefntvdm
for fixing our vim plugin, especially as we (the maintainers) don't really know vim script sadly- \n
@\u200bidorrington92
for fixing the docstring bug where Black would move the closing quotes causing it to violate the line length limit (whoops!)- \n
@\u200bhbrunn
for contributing the migrate-black script- \n
@\u200bsaroad2
for improving newline handling after code blocks and test infrastructure improvements... and everyone else who contributed documentation, tests, or other improvements to the Black project!
\n\n
... (truncated)
\nSourced from black's changelog.
\n\n\n22.6.0
\nStyle
\n\n
\n- Fix unstable formatting involving
\n#fmt: skip
and# fmt:skip
comments (notice the\nlack of spaces) (#2970)Preview style
\n\n
\n- Docstring quotes are no longer moved if it would violate the line length limit (#3044)
\n- Parentheses around return annotations are now managed (#2990)
\n- Remove unnecessary parentheses around awaited objects (#2991)
\n- Remove unnecessary parentheses in
\nwith
statements (#2926)- Remove trailing newlines after code block open (#3035)
\nIntegrations
\n\n
\n- Add
\nscripts/migrate-black.py
script to ease introduction of Black to a Git project\n(#3038)Output
\n\n
\n- Output Python version and implementation as part of
\n--version
flag (#2997)Packaging
\n\n
\n- Use
\ntomli
instead oftomllib
on Python 3.11 builds wheretomllib
is not\navailable (#2987)Parser
\n\n
\n- PEP 654 syntax (for example,\n
\nexcept *ExceptionGroup:
) is now supported (#3016)- PEP 646 syntax (for example,\n
\nArray[Batch, *Shape]
ordef fn(*args: *T) -> None
) is now supported (#3071)Vim Plugin
\n\n
\n- Fix
\nstrtobool
function. It didn't parse true/on/false/off. (#3025)22.3.0
\nPreview style
\n\n
\n- Code cell separators
\n#%%
are now standardised to# %%
(#2919)- Remove unnecessary parentheses from
\nexcept
statements (#2939)- Remove unnecessary parentheses from tuple unpacking in
\nfor
loops (#2945)- Avoid magic-trailing-comma in single-element subscripts (#2942)
\nConfiguration
\n\n
... (truncated)
\nf6c139c
Prepare docs for release 22.6.0 (#3139)eb5d175
Update preview style docs to include recent changes (#3136)d848209
Bump furo from 2022.6.4.1 to 2022.6.21 in /docs (#3138)fa6caa6
Only call get_future_imports when needed (#3135)6463fb8
Bump sphinx from 5.0.1 to 5.0.2 in /docs (#3128)e3c9b04
Replace link to Requests documentation (#3125)6c1bd08
Test run black on self (#3114)799adb5
Bump actions/setup-python from 3 to 4 (#3121)162ecd1
Use is_number_token instead of assertion (#3069)8c8675c
Update documentation dependencies (#3118)