Skip to content

Conversation

@dweindl
Copy link
Member

@dweindl dweindl commented Aug 25, 2025

Skip validate_yaml_semantics for PEtab v2. Those errors will be caught elsewhere.

Closes #428.

@dweindl dweindl self-assigned this Aug 25, 2025
@codecov-commenter
Copy link

codecov-commenter commented Aug 25, 2025

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.81%. Comparing base (89e9fec) to head (8cf8970).

Files with missing lines Patch % Lines
petab/petablint.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #432      +/-   ##
==========================================
- Coverage   74.82%   74.81%   -0.02%     
==========================================
  Files          62       62              
  Lines        6764     6765       +1     
  Branches     1195     1195              
==========================================
  Hits         5061     5061              
- Misses       1251     1252       +1     
  Partials      452      452              

☔ 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.

@dweindl dweindl marked this pull request as ready for review August 25, 2025 13:29
@dweindl dweindl requested a review from a team as a code owner August 25, 2025 13:29
problem.to_files(Path(tmpdir))

result = subprocess.run(["petablint", str(Path(tmpdir, "problem.yaml"))]) # noqa: S603,S607
assert result.returncode == 0
Copy link
Member

Choose a reason for hiding this comment

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

Fine as is, but I would normally opt for asserting that more specific output is the same, rather than something that might be coincidentally the same, like a return code of 0. e.g. see the same error in problem.validate and result.

Copy link
Member Author

Choose a reason for hiding this comment

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

Here it's specifically to check that there is no uncaught exception. This feels sufficient and avoids having to update the test if some message changes.

Copy link
Member

@dilpath dilpath Aug 30, 2025

Choose a reason for hiding this comment

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

OK, looks good then. Could add that to the description or test name.

Skip `validate_yaml_semantics` for PEtab v2. Those errors will be caught elsewhere.

Closes PEtab-dev#428.
@dweindl dweindl merged commit de974ba into PEtab-dev:main Sep 19, 2025
7 checks passed
@dweindl dweindl deleted the fix_petablint2 branch September 19, 2025 20:34
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.

Update for v2 validate_yaml_semantics

3 participants