Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

assadyousuf
Copy link
Contributor

@assadyousuf assadyousuf commented Oct 3, 2025

Closes #1702

@DouweM DouweM changed the title Solves #1702 Use click instead of argparse on PydanticAI CLI Oct 3, 2025
@assadyousuf
Copy link
Contributor Author

assadyousuf commented Oct 3, 2025

@DouweM Unrelated linting errors to this PR still seem to be showing up. Thought it was an issue with my rebase in my closed PR

@assadyousuf assadyousuf mentioned this pull request Oct 3, 2025
@DouweM
Copy link
Collaborator

DouweM commented Oct 3, 2025

@assadyousuf Looking it uv.lock, it seems like you inadvertently updated the modal package. Can you roll that back and add just click?

@assadyousuf
Copy link
Contributor Author

Everything is ready on this PR now

@DouweM
Copy link
Collaborator

DouweM commented Oct 8, 2025

@Kludex Can you please check this out as you originally created #1702?

@DouweM DouweM requested a review from Kludex October 8, 2025 07:12
cli = [
"rich>=13",
"prompt-toolkit>=3",
"argcomplete>=3.5.0",
Copy link
Member

Choose a reason for hiding this comment

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

I think this dependency was dropped?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right missed this

sys.exit(cli(prog_name=prog_name))


def cli( # noqa: C901
Copy link
Member

Choose a reason for hiding this comment

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

Is this factory still needed like this?

@assadyousuf assadyousuf requested a review from Kludex October 14, 2025 00:38
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.

Use click instead of argparse on PydanticAI CLI

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.