Skip to content
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

Add pre-commit hook for poetry sync #10222

Open
swssl opened this issue Feb 25, 2025 · 0 comments
Open

Add pre-commit hook for poetry sync #10222

swssl opened this issue Feb 25, 2025 · 0 comments
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged

Comments

@swssl
Copy link

swssl commented Feb 25, 2025

Issue Kind

Change in current behaviour

Description

With the deprecation of poetry install --sync, poetry sync was introduced. Similary, there is a pre-commit hook for poetry install that also allows to be used with --sync. I think, a poetry-sync hook would make sense.

Impact

A poetry-sync hook would simplify development workflows in team setups. Apart from that, currently, the poetry-install hook does not support all the functionalities it did before.

Workarounds

Pipx offers the pipx run command as pre-commit hook. While untested from my side, I think it should be able to run poetry sync, please refer to https://pipx.pypa.io/latest/installation/#using-pipx-with-pre-commit

@swssl swssl added kind/feature Feature requests/implementations status/triage This issue needs to be triaged labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Feature requests/implementations status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant