Describe the bugpoetry install will install pre-commit of version 2.21.0 in the virtual environment. However, after pre-commit install, doing a Git commit will lead to an error:
Expected behavior
The pre-commit hooks should successfully run.
Desktop (please complete the following information):
OS: MacOS
Version 14.1.1
Additional context
I tried on my machine with different versions of pre-commit. Version 3.0 and 3.1 still caused the same error, while version 3.2 led to a successful pre-commit check, in accord with the answer on StackOverflow. Therefore it seems that to address this issue, we need to update the required version of pre-commit in pyproject.toml to pre-commit = "^3.2.0".
Describe the bug
poetry install
will install pre-commit of version 2.21.0 in the virtual environment. However, afterpre-commit install
, doing a Git commit will lead to an error:This issue was also discussed in https://stackoverflow.com/questions/77503109/how-to-fix-invalidmanifesterror-for-pre-commit-with-black.
To Reproduce Steps to reproduce the behavior:
poetry install
pre-commit install
git commit
Expected behavior The pre-commit hooks should successfully run.
Desktop (please complete the following information):
Additional context
I tried on my machine with different versions of
pre-commit
. Version 3.0 and 3.1 still caused the same error, while version 3.2 led to a successful pre-commit check, in accord with the answer on StackOverflow. Therefore it seems that to address this issue, we need to update the required version ofpre-commit
inpyproject.toml
topre-commit = "^3.2.0"
.