Autoinstall after poetry-lock pre-commit hook #7879
Someone894
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
in my projects I use poetry and also pre-commit hooks. To keep the vulnerabilities as low as possible I also use the poetry-lock pre-commit hook, which works fine. When I run a
git commit
and the poetry-lock pre-commit hook creates a new lock file I have to manually runpoetry install
to actually install the updates made by the poetry-lock pre-commit hook.Currently I am thinking about a way to automate this step, to save some time and also to keep me from forgetting to install the updates.
What do you think would be best way to automate the
poetry install
after the poetry-lock pre-commit hook?One way could be to write another pre-commit hook that installs the changes from the poetry-lock pre-commit hook, or one could have some kind of combined
poetry run
which checks whether the currently installed packages are consistent with thepoetry.lock
file and updates them inf necessary.Beta Was this translation helpful? Give feedback.
All reactions