You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure why I get this error when running black on pre-commit. As a workaround currenly poetry run black . is being used.
black....................................................................Failed
- hook id: black
- exit code: 1
Traceback (most recent call last):
File "/home/dpalma/.cache/pre-commit/reporuiqo72y/py_env-python3.8/bin/black", line 8, in <module>
sys.exit(patched_main())
File "/home/dpalma/.cache/pre-commit/reporuiqo72y/py_env-python3.8/lib/python3.8/site-packages/black/__init__.py", line 6606, in patched_main
patch_click()
File "/home/dpalma/.cache/pre-commit/reporuiqo72y/py_env-python3.8/lib/python3.8/site-packages/black/__init__.py", line 6595, in patch_click
from click import _unicodefun # type: ignore
ImportError: cannot import name '_unicodefun' from 'click' (/home/dpalma/.cache/pre-commit/reporuiqo72y/py_env-python3.8/lib/python3.8/site-packages/click/__init__.py)
The text was updated successfully, but these errors were encountered:
Not sure why I get this error when running black on pre-commit. As a workaround currenly
poetry run black .
is being used.The text was updated successfully, but these errors were encountered: