pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-black py-black: updated to 22.6.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/37da6009fab5
branches:  trunk
changeset: 381648:37da6009fab5
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Jul 11 08:52:49 2022 +0000

description:
py-black: updated to 22.6.0

22.6.0

Style

- Fix unstable formatting involving `#fmt: skip` and `# fmt:skip` comments (notice the
  lack of spaces)

Preview style

- Docstring quotes are no longer moved if it would violate the line length limit
- Parentheses around return annotations are now managed
- Remove unnecessary parentheses around awaited objects
- Remove unnecessary parentheses in `with` statements
- Remove trailing newlines after code block open

Integrations

- Add `scripts/migrate-black.py` script to ease introduction of Black to a Git project


Output

- Output Python version and implementation as part of `--version` flag

Packaging

- Use `tomli` instead of `tomllib` on Python 3.11 builds where `tomllib` is not
  available

Parser

- [PEP 654](https://peps.python.org/pep-0654/#except) syntax (for example,
  `except *ExceptionGroup:`) is now supported
- [PEP 646](https://peps.python.org/pep-0646) syntax (for example,
  `Array[Batch, *Shape]` or `def fn(*args: *T) -> None`) is now supported

Vim Plugin

- Fix `strtobool` function. It didn't parse true/on/false/off.

diffstat:

 textproc/py-black/Makefile |  4 ++--
 textproc/py-black/distinfo |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r cee0aa2d0906 -r 37da6009fab5 textproc/py-black/Makefile
--- a/textproc/py-black/Makefile        Mon Jul 11 08:51:08 2022 +0000
+++ b/textproc/py-black/Makefile        Mon Jul 11 08:52:49 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.7 2022/04/12 10:11:38 adam Exp $
+# $NetBSD: Makefile,v 1.8 2022/07/11 08:52:49 adam Exp $
 
-DISTNAME=      black-22.3.0
+DISTNAME=      black-22.6.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    textproc devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=b/black/}
diff -r cee0aa2d0906 -r 37da6009fab5 textproc/py-black/distinfo
--- a/textproc/py-black/distinfo        Mon Jul 11 08:51:08 2022 +0000
+++ b/textproc/py-black/distinfo        Mon Jul 11 08:52:49 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.7 2022/04/12 10:11:38 adam Exp $
+$NetBSD: distinfo,v 1.8 2022/07/11 08:52:49 adam Exp $
 
-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
+BLAKE2s (black-22.6.0.tar.gz) = c9f070c18390d6f14b3ff8e56588534cf498ea34392411801af9817e18d5d4ac
+SHA512 (black-22.6.0.tar.gz) = 8d1e2871abb4872d6e368b62e07112c791e8626154ae323639414393f1fbffdab219389e89785f46cc2cda23a4109a2de9c5b672bdd76ff42cc860fd21472f2c
+Size (black-22.6.0.tar.gz) = 566106 bytes



Home | Main Index | Thread Index | Old Index