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

Use PEP-593 Annotated for options and arguments in CLI commands #644

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

rominf
Copy link
Contributor

@rominf rominf commented Jun 8, 2023

typer 0.9.0 introduced the support for PEP-593 Annotated for
specifying options and argument and it is now recommended to use it:
https://typer.tiangolo.com/release-notes/#090

@rominf

This comment was marked as resolved.

`typer` 0.9.0 introduced the support for PEP-593 `Annotated` for
specifying options and argument and it is recommended to use it:
https://typer.tiangolo.com/release-notes/#090
@rominf rominf force-pushed the rominf-cli-annotated branch from 3938b6c to 14700a6 Compare June 20, 2023 16:11
@rominf rominf marked this pull request as ready for review June 20, 2023 16:17
@codecov-commenter
Copy link

codecov-commenter commented Jun 20, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.05 🎉

Comparison is base (bd5bc88) 83.21% compared to head (14700a6) 83.26%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #644      +/-   ##
==========================================
+ Coverage   83.21%   83.26%   +0.05%     
==========================================
  Files          78       78              
  Lines        6184     6186       +2     
==========================================
+ Hits         5146     5151       +5     
+ Misses       1038     1035       -3     
Impacted Files Coverage Δ
quetz/authentication/oauth2.py 84.12% <100.00%> (+0.25%) ⬆️
quetz/cli.py 74.76% <100.00%> (+0.07%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rominf
Copy link
Contributor Author

rominf commented Jun 20, 2023

@janjagusch I can't add label maintenance (most probably because of missing permissions), but GitHub Action requires some label. Could you please add it for me?

@janjagusch janjagusch merged commit 824ad2d into mamba-org:main Jun 20, 2023
@rominf rominf deleted the rominf-cli-annotated branch June 20, 2023 17:03
ivergara pushed a commit to ivergara/quetz that referenced this pull request Jun 21, 2023
…a-org#644)

`typer` 0.9.0 introduced the support for PEP-593 `Annotated` for
specifying options and argument and it is recommended to use it:
https://typer.tiangolo.com/release-notes/#090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants