use Pydantic to validate CLI for project setup #2121
-
|
I gather this isn't currently happening? I mistakenly entered a Sentry key instead of a URL but this wasn't enforced until |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
So, as far as I understand, the idea is to add validation to project setup script. Currently project uses Copier. |
Beta Was this translation helpful? Give feedback.
-
|
Also from the simple validation logic, this wouldn't be done easily with pydantic core features. A key and a url is just a string and it would be necessary to write dedicated @validator logic. Is it worth to spend time on this? |
Beta Was this translation helpful? Give feedback.
So, as far as I understand, the idea is to add validation to project setup script.
Currently project uses Copier.
I investigated a little and didn't find simple way to implement this with Copier