Path to this page:
Subject: CVS commit: pkgsrc/textproc/py-black
From: Adam Ciarcinski
Date: 2023-09-11 11:27:50
Message id: 20230911092750.EDE35FBDB@cvs.NetBSD.org
Log Message:
py-black: updated to 23.9.1
23.9.1
Due to various issues, the previous release (23.9.0) did not include compiled mypyc
wheels, which make Black significantly faster. These issues have now been fixed, and
this release should come with compiled wheels once again.
There will be no wheels for Python 3.12 due to a bug in mypyc. We will provide 3.12
wheels in a future release as soon as the mypyc bug is fixed.
Packaging
- Upgrade to mypy 1.5.1
Performance
- Store raw tuples instead of NamedTuples in Black's cache, improving performance and
decreasing the size of the cache
23.9.0
Preview style
- More concise formatting for dummy implementations
- In stub files, add a blank line between a statement with a body (e.g an
`if sys.version_info > (3, x):`) and a function definition on the same level
- Fix a bug whereby spaces were removed from walrus operators within subscript
Configuration
- Black now applies exclusion and ignore logic before resolving symlinks
Performance
- Avoid importing `IPython` if notebook cells do not contain magics
- Improve caching by comparing file hashes as fallback for mtime and size
_Blackd_
- Fix an issue in `blackd` with single character input
Integrations
- Black now has an
[official pre-commit mirror](https://github.com/psf/black-pre-commit-mirror). \
Swapping
`https://github.com/psf/black` to \
`https://github.com/psf/black-pre-commit-mirror` in
your `.pre-commit-config.yaml` will make Black about 2x faster
- The `.black.env` folder specified by `ENV_PATH` will now be removed on the \
completion
of the GitHub Action
Files: