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

Prevent plugin from running on poetry "self" commands #2

Merged
merged 2 commits into from
Sep 12, 2022

Conversation

kohlerj
Copy link
Contributor

@kohlerj kohlerj commented Sep 9, 2022

Closes #1

I went ahead and added some changes to cope with self commands. So commands like poetry self add keyring for instance do not trigger installation of the hooks.

The type of event passed to the callback function was also changed to the proper one when listening for TERMINATE type events. This removes the access to the "private" _exit_code.

The changes were tested on my machine.

@vstrimaitis
Copy link
Owner

LGTM, thanks for the contribution! 🚀

@vstrimaitis vstrimaitis merged commit 4a00484 into vstrimaitis:master Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin should not run when running poetry "self" commands
2 participants