Repository navigation
Improve config printing - #218
esthermichelle wants to merge 4 commits into
Conversation
👷 Deploy request for trainite pending review.Visit the deploys page to approve it
|
There was a problem hiding this comment.
🟡 Changes recommended
The configuration string serialization remains incomplete because subclass-specific model and data fields can be omitted, and the existing test does not verify that those fields are preserved.
1 open issue
Review effort: Lite
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
can you give an example of how it's printed ? |
|
Sure, here is an example showing the difference: Before: After: |
|
yeah, still looks off, I think it would be cleaner if we cab print it like yaml, I think we have pyyaml package and it can convert the config to yaml which then can be printed this is what I used in my notebook example
I mean you can simply it a bit if it works it was generated by an agent so not sure if we need to play with values like width etc. |

Summary
This PR improves the string representation of
ProjectConfigand closes #214.This implementation uses Pydantic's built-in JSON serialization instead of introducing an additional dependency such as Rich.
A
__str__method was added toProjectConfigthat:by_alias=True, so fields such as_target_are displayed correctly.A test was added to
tests/config/base_test.pyto verify that:_target_are preserved.AI usage
Tool(s) and usage:
Claude was used for code review and test suggestions.
Human Submission Confirmation
Testing