-
Notifications
You must be signed in to change notification settings - Fork 26
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
added script to create new users, and import projects as template #2335
added script to create new users, and import projects as template #2335
Conversation
4bcc5f8
to
a6f9254
Compare
Codecov Report
@@ Coverage Diff @@
## master #2335 +/- ##
========================================
- Coverage 71.8% 71.7% -0.1%
========================================
Files 506 506
Lines 19925 19925
Branches 1949 1949
========================================
- Hits 14315 14302 -13
- Misses 5137 5146 +9
- Partials 473 477 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
from pathlib import Path | ||
from typing import Optional | ||
|
||
import typer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one is nice 👍
|
||
def main( | ||
endpoint: str, | ||
username: str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if typer would validate and convert parameters if they are annotatedendpoint: URL, username: EmailStr, password:SecretStr
. Otherwise, one could use the pydantic validator ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried.. and you get an error a la "this is not yet supported"
What do these changes do?
Example:
Related issue/s
How to test
Checklist