py-black: updated to 22.3.0

22.3.0

Preview style

- Code cell separators `#%%` are now standardised to `# %%`
- Remove unnecessary parentheses from `except` statements
- Remove unnecessary parentheses from tuple unpacking in `for` loops
- Avoid magic-trailing-comma in single-element subscripts

Configuration

- Do not format `__pypackages__` directories by default
- Add support for specifying stable version with `--required-version`
- Avoid crashing when the user has no homedir
- Avoid crashing when md5 is not available
- Fix handling of directory junctions on Windows

Documentation

- Update pylint config documentation

Integrations

- Move test to disable plugin in Vim/Neovim, which speeds up loading

Output

- In verbose, mode, log when _Black_ is using user-level config

Packaging

- Fix Black to work with Click 8.1.0
- On Python 3.11 and newer, use the standard library's `tomllib` instead of `tomli`

- `black-primer`, the deprecated internal devtool, has been removed and copied to a
  [separate repository](https://github.com/cooperlees/black-primer)

Parser

- 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`
This commit is contained in:
adam 2022-04-12 10:11:38 +00:00
parent 70c010e895
commit c454be4f42
4 changed files with 11 additions and 23 deletions

View file

@ -1,3 +1,2 @@
bin/black @PREFIX@/bin/black-@PYVERSSUFFIX@
bin/black-primer @PREFIX@/bin/black-primer-@PYVERSSUFFIX@
bin/blackd @PREFIX@/bin/blackd-@PYVERSSUFFIX@

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.6 2022/01/31 09:55:42 wiz Exp $
# $NetBSD: Makefile,v 1.7 2022/04/12 10:11:38 adam Exp $
DISTNAME= black-22.1.0
DISTNAME= black-22.3.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= textproc devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=b/black/}
@ -37,7 +37,7 @@ DEPENDS+= ${PYPKGPREFIX}-typing-extensions>=3.10.0.0:../../devel/py-typing-exten
USE_PKG_RESOURCES= yes
post-install:
.for bin in black black-primer blackd
.for bin in black blackd
cd ${DESTDIR}${PREFIX}/bin && \
${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
.endfor

View file

@ -1,10 +1,6 @@
@comment $NetBSD: PLIST,v 1.3 2022/01/31 09:55:42 wiz Exp $
@comment $NetBSD: PLIST,v 1.4 2022/04/12 10:11:38 adam Exp $
bin/black-${PYVERSSUFFIX}
bin/black-primer-${PYVERSSUFFIX}
bin/blackd-${PYVERSSUFFIX}
${PYSITELIB}/_black_version.py
${PYSITELIB}/_black_version.pyc
${PYSITELIB}/_black_version.pyo
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@ -12,6 +8,9 @@ ${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/_black_version.py
${PYSITELIB}/_black_version.pyc
${PYSITELIB}/_black_version.pyo
${PYSITELIB}/black/__init__.py
${PYSITELIB}/black/__init__.pyc
${PYSITELIB}/black/__init__.pyo
@ -76,16 +75,6 @@ ${PYSITELIB}/black/strings.pyo
${PYSITELIB}/black/trans.py
${PYSITELIB}/black/trans.pyc
${PYSITELIB}/black/trans.pyo
${PYSITELIB}/black_primer/__init__.py
${PYSITELIB}/black_primer/__init__.pyc
${PYSITELIB}/black_primer/__init__.pyo
${PYSITELIB}/black_primer/cli.py
${PYSITELIB}/black_primer/cli.pyc
${PYSITELIB}/black_primer/cli.pyo
${PYSITELIB}/black_primer/lib.py
${PYSITELIB}/black_primer/lib.pyc
${PYSITELIB}/black_primer/lib.pyo
${PYSITELIB}/black_primer/primer.json
${PYSITELIB}/blackd/__init__.py
${PYSITELIB}/blackd/__init__.pyc
${PYSITELIB}/blackd/__init__.pyo

View file

@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.6 2022/01/31 09:55:42 wiz Exp $
$NetBSD: distinfo,v 1.7 2022/04/12 10:11:38 adam Exp $
BLAKE2s (black-22.1.0.tar.gz) = 77159f2ac0156819770ff7b85029d92fe14a08e089f571846936cd49e1f0b927
SHA512 (black-22.1.0.tar.gz) = 296eb0f0f1bda03a6db54720c168648e2cd7f937319682b6605a61755b7455667b311314246d69b0292d6443b36190e0a4cb86c55ab12631ec079e0910ed48dc
Size (black-22.1.0.tar.gz) = 559521 bytes
BLAKE2s (black-22.3.0.tar.gz) = 268c8ae6c1082482d43c82279b5d804d0c54487b6a80c8a29e6047cfaa876ccd
SHA512 (black-22.3.0.tar.gz) = ad20fd5ccb587db449889840deb1f49061a3d382ba1a14b062a0e6795a4d4b163e8f2ed0207f38dc682cf50eae596fe0973eadb510717243d41e8930c77b7069
Size (black-22.3.0.tar.gz) = 554277 bytes