-
Notifications
You must be signed in to change notification settings - Fork 54
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
poetry-export pre-commit hook doesn't fail #237
Comments
Are you running For specific details, please refer to this code: https://github.com/pre-commit/pre-commit/blob/48f0dc9615488b583b11f2d90bd4a332701c6b6a/pre_commit/git.py#L154-L155, which means the implementation of One possible workaround is for you to manually stage |
My i.e. this plugin returns success unconditionally. I'd like to have the behaviour of poetry-lock hook so that if |
The poetry-expory hook is quite useful but shouldn't it return an error when it actually detects any changes? I want to use it alongside poetry-lock hook which does in fact fails after updating the lock file, and forces you to commit the changed lock file. I basically want to make sure that the poetry.lock and requirements.txt files are always in sync when commits are pushed. Right now the poetry-export does correctly update requirements.txt but doesn't block the push.
(sorry for the duplicate, I just realised poetry export has its own repo)
The text was updated successfully, but these errors were encountered: