pkgsrc/textproc/py-black
adam 0b65988ac8 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.
2022-07-11 08:52:49 +00:00
..
ALTERNATIVES py-black: updated to 22.3.0 2022-04-12 10:11:38 +00:00
DESCR
distinfo py-black: updated to 22.6.0 2022-07-11 08:52:49 +00:00
Makefile py-black: updated to 22.6.0 2022-07-11 08:52:49 +00:00
PLIST py-black: updated to 22.3.0 2022-04-12 10:11:38 +00:00