-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/25 clean up workflow and schema #28
base: main
Are you sure you want to change the base?
Conversation
@aaspinwall and @MelissaAutumn - The Since there are no notifications, we can disregard the failing standalone But also, I'm wondering: when exactly should we run the
When should we explicitly run |
General comment: There is still some 4-space indention in |
For most of our projects we have ruff setup and some settings setup. I have setup in my ide to run on save and format. Works well! |
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.
Just some python clean up. Can you add ruff to this project and copy over appointment's ruff settings?
return None | ||
|
||
@staticmethod | ||
def from_yaml_dir(directory): |
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.
def from_yaml_dir(directory): | |
def from_yaml_dir(directory: str) -> NotificationModel: |
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.
Seems like you can't use NotificationModel
for the return type on this method.
Maybe because while the definition of the class is being parsed, the class doesn't exist yet?
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.
Try making it a string. Basically lazy loads it.
Co-authored-by: Mel <[email protected]>
Co-authored-by: Mel <[email protected]>
Co-authored-by: Mel <[email protected]>
Closes #18 #19 #23 #27 #24 #25
This PR:
description
kwargs to pydantic class Capture less formal conventions in generated schema #19json/notifcations.json
Concat yaml files in a folder rather than parsing them into multiple output json files #27