Skip to content

fix: bump black pre-commit hook to 24.10.0 for Python 3.14 compatibility#420

Open
fazalpsinfo-cmyk wants to merge 1 commit into
tuttle-dev:mainfrom
fazalpsinfo-cmyk:fix/black-python-3.14
Open

fix: bump black pre-commit hook to 24.10.0 for Python 3.14 compatibility#420
fazalpsinfo-cmyk wants to merge 1 commit into
tuttle-dev:mainfrom
fazalpsinfo-cmyk:fix/black-python-3.14

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Description

Black 22.6.0 crashes on Python 3.14 when reformatting multiple files:

RuntimeError: There is no current event loop in thread 'MainThread'.

Python 3.14 removed the implicit event-loop creation, which breaks
black's reformat_many codepath. Bumping to 24.10.0 resolves this.

Changes

  • .pre-commit-config.yaml: bump psf/black from 22.6.0 to 24.10.0

Fixes #417


☕ If you found this useful: https://buymeacoffee.com/muhamedfazalps

Black 22.6.0 crashes on Python 3.14 when reformatting multiple files
(raises RuntimeError: no current event loop). Bump to 24.10.0 which
includes the fix for this issue.

Fixes tuttle-dev#417
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

black 22.6.0 (pre-commit pin) crashes on Python 3.14

1 participant