fix: black pre-commit version
Closed this issue · 0 comments
nyoungstudios commented
If you delete your virtual environment/conda environment and rerun the setup command. Install, the precommit hooks and try to commit something, you will receive this error:
File "/home/user/.cache/pre-commit/repo3ds3n7k5/py_env-python3/lib/python3.7/site-packages/black/__init__.py", line 1113, in patch_click
from click import _unicodefun # type: ignore
ImportError: cannot import name '_unicodefun' from 'click' (/home/user/.cache/pre-commit/repo3ds3n7k5/py_env-python3/lib/python3.7/site-packages/click/__init__.py)
Solution, upgrade black version to "22.3.0" from "21.6b0". See issue here: psf/black#2964