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

.pre-commit-hooks.yaml: Add --check-change to poetry-export #8810

Closed

Conversation

noamraph
Copy link
Contributor

Pull Request Check List

Resolves: #8512 , python-poetry/poetry-plugin-export#237

Depends on: python-poetry/poetry-plugin-export#252

  • Added tests for changed code.
  • Updated documentation for changed code.

python-poetry/poetry-plugin-export#252 adds a --check-change option to poetry export. This change adds this argument to the pre-commit hook, in order to make the hook behave as expected and return nonzero if it changed files.

@noamraph
Copy link
Contributor Author

I think that this change isn't needed - it turns out that pre-commit checks if the content was changed, and doesn't require a nonzero return code.

See: pre-commit/pre-commit.com#912 (comment)

@noamraph noamraph closed this Dec 21, 2023
Copy link

github-actions bot commented Mar 3, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

poetry-export pre-commit hook doesn't fail the commit/push
1 participant