-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre-commit hook poetry-lock not using expected python runtime #6946
Comments
not a poetry question |
It does not work because Poetry has specified Python version in hooks definition. Please remove version definition. https://github.com/python-poetry/poetry/blob/master/.pre-commit-hooks.yaml |
no point in making updates in closed issues - please submit a merge request |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option) and have included the output below.Issue
The pre-commit hook for poetry-lock is not using the expected python runtime (using pyenv). Note in below screenshot that the desired version is set globally, in poetry venv, and via
poetry env use
. For some reason, poetry-lock is using a different runtime (3.9.6), which is not even used in fresh terminals.Content of ~/.config/pypoetry/config.toml:
The text was updated successfully, but these errors were encountered: