Path to this page:
Subject: CVS commit: pkgsrc/textproc/py-black
From: Adam Ciarcinski
Date: 2022-04-12 12:11:38
Message id: 20220412101138.D81BFFB24@cvs.NetBSD.org
Log Message:
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`
Files: