Skip to content

linting: more fixes for incorrect parsing of version statement#3973

Merged
mashehu merged 7 commits intonf-core:devfrom
mashehu:more-meta-yml-regex-fixes
Jan 12, 2026
Merged

linting: more fixes for incorrect parsing of version statement#3973
mashehu merged 7 commits intonf-core:devfrom
mashehu:more-meta-yml-regex-fixes

Conversation

@mashehu
Copy link
Copy Markdown
Contributor

@mashehu mashehu commented Dec 16, 2025

combined the two previous methods, because the do quite similar things.
replaced the regex with manual character based parsing (because of difficulties to write a readable regex to parse balanced parentheses and different patterns in eval commands

Added test case of previously incorrectly parsed eval statement nf-core/modules#9571 (comment)

@mashehu mashehu requested a review from mirpedrol December 16, 2025 11:34
@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 16, 2025

Codecov Report

❌ Patch coverage is 90.32258% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.65%. Comparing base (0ed9bf2) to head (731d4f6).
⚠️ Report is 8 commits behind head on dev.

Files with missing lines Patch % Lines
nf_core/components/nfcore_component.py 90.32% 3 Missing ⚠️

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

@mashehu mashehu changed the title linting: more fix incorrect parsing ofversion statement linting: more fixes for incorrect parsing of version statement Dec 16, 2025
@mashehu
Copy link
Copy Markdown
Contributor Author

mashehu commented Dec 16, 2025

@nf-core-bot changelog

Copy link
Copy Markdown
Member

@mirpedrol mirpedrol left a comment

Choose a reason for hiding this comment

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

LGTM!

@mashehu mashehu merged commit 36cd310 into nf-core:dev Jan 12, 2026
114 checks passed
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.

3 participants