Skip to content

Conversation

cthoyt
Copy link
Member

@cthoyt cthoyt commented Apr 29, 2025

I'm currently trying to use sssom.io.validate_path to check that SSSOM files generated by SeMRA are valid, but it's very difficult to get access to the results of validation programmatically. There should be some logging output to stderr, but this isn't so helpful in a unit testing environment.

This PR makes the validation functions return the reports generated by LinkML, so they can be returned and used downstream.

This PR also operationalizes the default validator list, meaning you don't have to import them or know what they are to get this function up and running.

Blocked by #580

Alternative to #387, but that PR uses custom results instead of returning the LinkML objects

Copy link
Collaborator

@matentzn matentzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor comment but this looks great! THANKS a ton and a million sorry for the delayed review!

matentzn
matentzn previously approved these changes May 19, 2025
@cthoyt
Copy link
Member Author

cthoyt commented May 19, 2025

fyi this PR won't pass CI until #580 is merged since there are unrelated things that are broken now that #580 fixes

@cthoyt cthoyt enabled auto-merge (squash) May 19, 2025 10:14
@cthoyt cthoyt requested a review from matentzn May 19, 2025 10:14
@cthoyt
Copy link
Member Author

cthoyt commented May 19, 2025

sorry @matentzn I need a re-review, since there was a test I hadn't noticed had failed; related to checking the validate function returned none, and now it returns something that we can actually check in more depth!

Copy link
Collaborator

@matentzn matentzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the test fixes

@cthoyt cthoyt merged commit 45e7fd9 into master May 19, 2025
8 checks passed
@matentzn matentzn deleted the return-validation-reports branch May 19, 2025 10:39
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