I'm trying to commit my files using using this process:
git add <filename>
git commit -m "Changes made to this commit"
When I try to commit, I receive the following error:
black....................................................................Failed
- hook id: black
- exit code: 1
Traceback (most recent call last):
File "/Users/danieljohnson/.cache/pre-commit/repovmer0o49/py_env-python3/bin/black", line 8, in <module>
sys.exit(patched_main())
File "/Users/danieljohnson/.cache/pre-commit/repovmer0o49/py_env-python3/lib/python3.9/site-packages/black/__init__.py", line 6606, in patched_main
patch_click()
File "/Users/danieljohnson/.cache/pre-commit/repovmer0o49/py_env-python3/lib/python3.9/site-packages/black/__init__.py", line 6595, in patch_click
from click import _unicodefun # type: ignore
ImportError: cannot import name '_unicodefun' from 'click' (/Users/danieljohnson/.cache/pre-commit/repovmer0o49/py_env-python3/lib/python3.9/site-packages/click/__init__.py)
Originally using Click
version 8.0.3, then upgraded to 22.3.0, and also tried 8.1.3, because of this thread. However, I'm still getting the same error.
Any idea why I'm unable to commit? Could it have something to do with my changes?