Skip to content
Snippets Groups Projects

Update black version

Merged Bo-Chun Chen requested to merge louistw/self-reg-form:update-black-version into master

The same issue a while ago: https://github.com/uabrc/rabbitmq_agents/pull/144

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

Checking pipeline status.

Approval is optional

Merged by Bo-Chun ChenBo-Chun Chen 1 year ago (Jun 2, 2023 1:51am UTC)

Merge details

  • Changes merged into master with d104aac5.
  • Deleted the source branch.

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