You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation
Using a Python class would allow IDEs to provide auto-complete and validation while creating packages. It would also prevent IDEs from throwing errors about unresolved references for variables like env or resolve. It would also allow developers to see default values for fields and what fields are required.
Use classes for the package definitions. Either use custom classes with class variables or something like a pydantic model.
Something like this:
Motivation
Using a Python class would allow IDEs to provide auto-complete and validation while creating packages. It would also prevent IDEs from throwing errors about unresolved references for variables like
env
orresolve
. It would also allow developers to see default values for fields and what fields are required.This is possible using Python but also YAML schema validation. For Python see
spack
package definitions. For YAML see docker compose definitions.The text was updated successfully, but these errors were encountered: