Skip to content

SciML extension: add linters - #505

Merged
dilpath merged 3 commits into
mainfrom
sciml_linters
Aug 5, 2026
Merged

SciML extension: add linters#505
dilpath merged 3 commits into
mainfrom
sciml_linters

Conversation

@dilpath

@dilpath dilpath commented Jul 22, 2026

Copy link
Copy Markdown
Member

Generated based on PEtab-dev/petab_sciml#69

@dilpath
dilpath requested review from BSnelling and m-philipps July 22, 2026 16:28
@dilpath
dilpath requested a review from a team as a code owner July 22, 2026 16:28
@codecov-commenter

codecov-commenter commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.31313% with 37 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.30%. Comparing base (08489d2) to head (750c312).

Files with missing lines Patch % Lines
petab/v2/extensions/sciml_lint.py 81.86% 18 Missing and 17 partials ⚠️
petab/v2/lint.py 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #505      +/-   ##
==========================================
+ Coverage   75.12%   75.30%   +0.17%     
==========================================
  Files          64       64              
  Lines        7161     7353     +192     
  Branches     1267     1327      +60     
==========================================
+ Hits         5380     5537     +157     
- Misses       1291     1310      +19     
- Partials      490      506      +16     

☔ 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 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

Comment thread petab/v2/extensions/sciml_lint.py Outdated
Comment thread petab/v2/lint.py
Comment thread petab/v2/lint.py
Comment on lines +1215 to +1216
except ImportError:
sciml_validation_tasks = default_validation_tasks

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we move sciml_validation_tasks to .extensions.sciml_lint or .extensions.sciml?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done now, with the import from petab.v2.lint hidden inside the new method .petab.v2.extensions.sciml.sciml_lint.get_default_sciml_validation_tasks.

@dilpath
dilpath enabled auto-merge (squash) August 5, 2026 14:34
@dilpath
dilpath merged commit 3646706 into main Aug 5, 2026
13 checks passed
@dilpath
dilpath deleted the sciml_linters branch August 5, 2026 14: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.

4 participants