Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1929: local modules use remote format from template #3256

Open
wants to merge 14 commits into
base: dev
Choose a base branch
from

Conversation

awgymer
Copy link
Contributor

@awgymer awgymer commented Oct 28, 2024

PR checklist

  • This comment contains a description of changes (with reason)
  • CHANGELOG.md is updated
  • If you've fixed a bug or added code that should be tested, add tests!
  • Documentation in docs is updated

@awgymer awgymer changed the title fix(1929): more type-gating 1929: local modules use remote format from template Oct 28, 2024
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

Attention: Patch coverage is 79.64602% with 23 lines in your changes missing coverage. Please review.

Project coverage is 76.38%. Comparing base (ed1667f) to head (262dea3).

Files with missing lines Patch % Lines
nf_core/modules/lint/module_tests.py 33.33% 8 Missing ⚠️
nf_core/subworkflows/lint/subworkflow_tests.py 33.33% 8 Missing ⚠️
nf_core/components/create.py 81.25% 3 Missing ⚠️
nf_core/subworkflows/lint/meta_yml.py 80.00% 2 Missing ⚠️
nf_core/modules/lint/__init__.py 92.85% 1 Missing ⚠️
nf_core/modules/lint/meta_yml.py 83.33% 1 Missing ⚠️
Additional details and impacted files

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -22,6 +22,8 @@ def module_tests(_, module: NFCoreComponent):
and contains a ``main.nf.test`` and a ``main.nf.test.snap``

"""
if module.nftest_testdir is None or module.nftest_main_nf is None:
raise ValueError()
Copy link
Member

Choose a reason for hiding this comment

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

don't we want to allow local modules to not have these files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this was my first-pass to get mypy happy so I could run the tests on GitHub yesterday. I am updating the individual lint tests to be a bit more permissive of missing files for local modules.

@awgymer
Copy link
Contributor Author

awgymer commented Oct 29, 2024

There are currently no tests at all implemented for the linting of local modules or subworkflows 😱

Copy link
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.

The code looks good, but there is a test failing, LGTM once this is fixed 🚀

@awgymer awgymer force-pushed the 1929-local-modules-use-remote-format branch from e7d58cb to 5689ff6 Compare January 21, 2025 06:07
@awgymer awgymer marked this pull request as ready for review January 22, 2025 21:32
@awgymer awgymer requested a review from mirpedrol January 22, 2025 22:23
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