Skip to content

Conversation

@hugovk
Copy link
Collaborator

@hugovk hugovk commented Nov 18, 2025

Update to fix Black on Python 3.14:

$ pre-commit run --all-files
check for merge conflicts................................................Passed
fix end of files.........................................................Passed
trim trailing whitespace.................................................Passed
black....................................................................Failed
- hook id: black
- exit code: 1

Traceback (most recent call last):
  File "/Users/hugo/.cache/pre-commit/repofdxr8jgn/py_env-python3.14/bin/black", line 7, in <module>
    sys.exit(patched_main())
             ~~~~~~~~~~~~^^
  File "/Users/hugo/.cache/pre-commit/repofdxr8jgn/py_env-python3.14/lib/python3.14/site-packages/black/__init__.py", line 1455, in patched_main
    main()
    ~~~~^^
  File "/Users/hugo/.cache/pre-commit/repofdxr8jgn/py_env-python3.14/lib/python3.14/site-packages/click/core.py", line 1485, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/Users/hugo/.cache/pre-commit/repofdxr8jgn/py_env-python3.14/lib/python3.14/site-packages/click/core.py", line 1406, in main
    rv = self.invoke(ctx)
  File "/Users/hugo/.cache/pre-commit/repofdxr8jgn/py_env-python3.14/lib/python3.14/site-packages/click/core.py", line 1269, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hugo/.cache/pre-commit/repofdxr8jgn/py_env-python3.14/lib/python3.14/site-packages/click/core.py", line 824, in invoke
    return callback(*args, **kwargs)
  File "/Users/hugo/.cache/pre-commit/repofdxr8jgn/py_env-python3.14/lib/python3.14/site-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/hugo/.cache/pre-commit/repofdxr8jgn/py_env-python3.14/lib/python3.14/site-packages/black/__init__.py", line 570, in main
    reformat_many(
    ~~~~~~~~~~~~~^
        sources=sources,
        ^^^^^^^^^^^^^^^^
    ...<4 lines>...
        workers=workers,
        ^^^^^^^^^^^^^^^^
    )
    ^
  File "/Users/hugo/.cache/pre-commit/repofdxr8jgn/py_env-python3.14/lib/python3.14/site-packages/black/__init__.py", line 767, in reformat_many
    loop = asyncio.get_event_loop()
  File "/Library/Frameworks/Python.framework/Versions/3.14/lib/python3.14/asyncio/events.py", line 715, in get_event_loop
    raise RuntimeError('There is no current event loop in thread %r.'
                       % threading.current_thread().name)
RuntimeError: There is no current event loop in thread 'MainThread'.

@hugovk hugovk merged commit 19babb0 into meshy:main Nov 18, 2025
1 check passed
@hugovk hugovk deleted the bump-pre-commit branch November 18, 2025 11:37
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.

1 participant