-
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
hooks: add poetry-update hook #8327
Conversation
Anything else I could improve? |
Deploy preview for website ready! ✅ Preview Built with commit b2af90b. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. If @finswimmer agrees we can merge it.
When switching branches keeping dependencies in sync with the lock file can become cumbersome, because it is easy to forget. Therefore poetry supplies a pre-commit hook, that can take care of it. After switching branches or checking out a file `poetry install --sync` is invoked and keeps everything nice and tidy. To make use of that, you need to either supply `default_install_hook_types` inside of your `.pre-commit-config.yaml` or you need to manually install them with: `pre-commit install --install-hooks -t pre-commit -t post-checkout -t post-merge`.
Co-authored-by: Randy Döring <30527984+radoering@users.noreply.github.com>
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When switching branches keeping dependencies in sync with the lock file can become cumbersome, because it is easy to forget. Therefore poetry supplies a pre-commit hook, that can take care of it. After switching branches or checking out a file
poetry install --sync
is invoked and keeps everything nice and tidy.To make use of that, you need to either supply
default_install_hook_types
inside of your.pre-commit-config.yaml
or you need to manually install them with:pre-commit install --install-hooks -t pre-commit -t post-checkout -t post-merge
.Pull Request Check List
Resolves: #2863