Skip to content

List supported formats in invalid format error - #383

Open
draarivpatel-ui wants to merge 2 commits into
python-poetry:mainfrom
draarivpatel-ui:improve-invalid-format-error
Open

draarivpatel-ui wants to merge 2 commits into
python-poetry:mainfrom
draarivpatel-ui:improve-invalid-format-error

Conversation

@draarivpatel-ui

Copy link
Copy Markdown

Summary

  • Include the list of supported formats in the error raised for an invalid --format value, in both the command and the exporter API.
  • Extend the invalid format test to assert the message.

Fixes #27

Tests

  • pytest -q -o addopts= tests/command/test_command_export.py -k invalid_format (1 passed)
  • ruff check src tests

Copilot AI balanced review requested due to automatic review settings November 25, 2026 18:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

Insufficient error message when passing invalid argument to -f option of export command

2 participants