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
Uh oh!
There was an error while loading. Please reload this page.
-
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 commitand the poetry-lock pre-commit hook creates a new lock file I have to manually runpoetry installto 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 installafter 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 runwhich checks whether the currently installed packages are consistent with thepoetry.lockfile and updates them inf necessary.Beta Was this translation helpful? Give feedback.
All reactions