feat: Add --print-body flag to wait command#9
Merged
sokripon merged 7 commits intosokripon:mainfrom Jan 16, 2026
Merged
Conversation
The create-with-session command and its 'new' alias are already in upstream/main, so the benefits section is no longer needed.
- **lint.yml**: Run linter (ruff) and type checking (mypy) on every push and PR
- **tests.yml**: Run basic tests that don't require email sending on every push and PR
- **email-tests.yml**: Run tests that require Postmark email sending only on manual trigger
Benefits:
- Linting runs fast on every PR without waiting for long test runs
- Basic API tests run on every PR without requiring Postmark secrets
- Email sending tests only run when manually triggered by maintainer with secrets
- Uses pytest markers ("flow") to separate tests by dependencies
This fixes the issue where PRs from forks fail due to missing Postmark secrets.
mypy is not available in the project, so remove it from lint workflow. Ruff provides sufficient linting capabilities.
- test_email_sender_initialization() creates PostmarkEmailSender without session - test_wait_for_email_async() sends test email using PostmarkEmailSender - test_wait_for_email_filtered_async() sends test emails using PostmarkEmailSender These tests now properly excluded from basic tests workflow via -m "not flow"
Adds optional --print-body/-p parameter to wait command that displays the email body when a new email is received. Usage: tacomail wait <email> --print-body tacomail wait <email> -p If no text body is available, a message is shown instead.
- Remove incorrectly placed print_body parameter from create function - Fix f-string without placeholders (unnecessary f prefix) All linting now passes with ruff check.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an optional
--print-body/-pparameter to thewaitcommand that displays the email body when a new email is received.Changes
--print-body/-poptional flag towaitcommandFalseUsage
Example output
Benefits