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 Typer integration #3869

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

patrick91
Copy link

This PR adds an integration for Typer

The integration works by mocking typer.main.except_hook, I was chatting with Sebastian and he's willing to add a hook in typer to avoid mocking, but I think it's also fine to keep the code as is 😊

The code is inspired by the ExcepthookIntegration, same thing for the test, unfortunately there's no way to test a custom except_hook with pytest, so I'm running the CLI using subprocess.

Shall I add this to the default integrations? 😊

Closes #1612
Closes #1604

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.

Sentry won't work properly with typer
1 participant