-
Notifications
You must be signed in to change notification settings - Fork 83
Ak/spec #372
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
base: master
Are you sure you want to change the base?
Ak/spec #372
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #372 +/- ##
=========================================
Coverage ? 91.89%
=========================================
Files ? 49
Lines ? 4319
Branches ? 786
=========================================
Hits ? 3969
Misses ? 204
Partials ? 146 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| class FilePathTarget(BaseModel): | ||
| """Defines a file system path as the output destination for generated data. | ||
|
|
||
| This class represents a file system location where generated tables will be written |
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.
Move the targets out to a diff module.
| class ValidationResult: | ||
| """Container for validation results that collects errors and warnings during spec validation. | ||
|
|
||
| This class accumulates validation issues found while checking a DatagenSpec configuration. |
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.
Move it out, a diff module
| def generate_and_write_data( | ||
| self, | ||
| config: DatagenSpec, | ||
| config_source_name: str = "PydanticConfig" | ||
| ) -> None: |
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.
saveAsDatasetFromSpec maybe? make it all CamelCase
| def _prepare_data_generators( | ||
| self, | ||
| config: DatagenSpec, | ||
| config_source_name: str = "PydanticConfig" | ||
| ) -> dict[str, dg.DataGenerator]: |
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.
rename to buildFromSpec - all need to be CamelCase
Changes
Linked issues
Resolves #..
Requirements