Skip to content

Don't fail petablint for PEtab v2 problems with only warnings - #569

Merged
dweindl merged 3 commits into
PEtab-dev:mainfrom
dweindl:petablint_v2_warnings
Oct 26, 2026
Merged

dweindl merged 3 commits into
PEtab-dev:mainfrom
dweindl:petablint_v2_warnings

Conversation

@dweindl

@dweindl dweindl commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

For PEtab v2 problems, petablint exited with 1 for any validation issue, including warnings such as unused conditions. Now it reports all issues but only fails if there are errors, consistent with PEtab v1.

Use petablint --fail-on-warnings to get the previous behavior. This option currently only affects PEtab v2 problems.

Closes #567.

🤖 Generated with Claude Code

@codecov-commenter

codecov-commenter commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.04%. Comparing base (19df050) to head (a9855b3).

Files with missing lines Patch % Lines
petab/petablint.py 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #569      +/-   ##
==========================================
- Coverage   79.06%   79.04%   -0.02%     
==========================================
  Files          70       70              
  Lines        8155     8157       +2     
  Branches     1461     1461              
==========================================
  Hits         6448     6448              
- Misses       1218     1220       +2     
  Partials      489      489              

☔ View full report in Codecov by Harness.
📢 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 force-pushed the petablint_v2_warnings branch 2 times, most recently from c4fbba6 to 6d42f16 Compare October 25, 2026 08:43
@dweindl
dweindl marked this pull request as ready for review October 25, 2026 08:48
@dweindl
dweindl requested a review from a team as a code owner October 25, 2026 08:48
dweindl and others added 2 commits October 25, 2026 14:10
For PEtab v2 problems, `petablint` exited with 1 for any validation
issue, including warnings. Now it reports all issues but only fails if
there are errors, consistent with PEtab v1.

Closes PEtab-dev#567.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Allows restoring the previous behavior of failing on warnings for
PEtab v2 problems. Currently has no effect for PEtab v1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dweindl
dweindl force-pushed the petablint_v2_warnings branch from 6d42f16 to fe2174a Compare October 25, 2026 13:12
@dweindl
dweindl enabled auto-merge (squash) October 26, 2026 10:48
@dweindl
dweindl merged commit a285cad into PEtab-dev:main Oct 26, 2026
7 checks passed
@dweindl
dweindl deleted the petablint_v2_warnings branch October 26, 2026 11:18
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.

petablint fails for PEtab v2 problems with only warnings

3 participants