Skip to content
Snippets Groups Projects

Update black version

Merged Bo-Chun Chen requested to merge github/fork/diedpigs/fix-black into feat-cod-rmq

Got an error while trying to commit:

- hook id: black
- exit code: 1

Traceback (most recent call last):
  File "/Users/louistw/.cache/pre-commit/repou8gfch58/py_env-python3/bin/black", line 8, in <module>
    sys.exit(patched_main())
  File "/Users/louistw/.cache/pre-commit/repou8gfch58/py_env-python3/lib/python3.9/site-packages/black/__init__.py", line 7019, in patched_main
    patch_click()
  File "/Users/louistw/.cache/pre-commit/repou8gfch58/py_env-python3/lib/python3.9/site-packages/black/__init__.py", line 7008, in patch_click
    from click import _unicodefun  # type: ignore
ImportError: cannot import name '_unicodefun' from 'click' (/Users/louistw/.cache/pre-commit/repou8gfch58/py_env-python3/lib/python3.9/site-packages/click/__init__.py)

This seems to be an issue from one of the dependencies from black. Bumping black to the latest version solved the issue.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading