Skip to content

Conversation

@anupkalburgi
Copy link
Collaborator

Changes

Linked issues

Resolves #..

Requirements

  • manually tested
  • updated documentation
  • updated demos
  • updated tests

@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

❌ Patch coverage is 87.93103% with 21 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (master@3aca7f3). Learn more about missing BASE report.
⚠️ Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
dbldatagen/spec/generator_spec.py 86.42% 16 Missing and 3 partials ⚠️
dbldatagen/spec/compat.py 60.00% 2 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +69 to +72
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
Copy link
Collaborator Author

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.

Comment on lines +139 to +142
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.
Copy link
Collaborator Author

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

Comment on lines +278 to +282
def generate_and_write_data(
self,
config: DatagenSpec,
config_source_name: str = "PydanticConfig"
) -> None:
Copy link
Collaborator Author

@anupkalburgi anupkalburgi Nov 10, 2025

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

Comment on lines +127 to +131
def _prepare_data_generators(
self,
config: DatagenSpec,
config_source_name: str = "PydanticConfig"
) -> dict[str, dg.DataGenerator]:
Copy link
Collaborator Author

@anupkalburgi anupkalburgi Nov 10, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants