-
Notifications
You must be signed in to change notification settings - Fork 192
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
Fix meta_yml linting error #3317
base: dev
Are you sure you want to change the base?
Conversation
I think the issue was added here when the test was added back, but it was not so obvious that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, tests are currently failing due to a Java version, a fix is on the way, we can merge once that is fixed 👍
Thanks for this PR!
@@ -96,6 +95,9 @@ def __init__( | |||
self.test_yml = None | |||
self.test_main_nf = None | |||
|
|||
# Set process_name after self.main_nf is defined | |||
self.process_name = self._get_process_name() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.process_name = self._get_process_name() | |
self.process_name: String = self._get_process_name() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks I missed that! added.
PR checklist
CHANGELOG.md
is updatedDescription
This PR is to fix an issue where running
nf-core modules lint -a -k meta_yml
always has failing tests due tomodule.process_name
always being""
in nfcore_component.py.It gets initialized to
""
then eventually gets updated inmain_nf
but not in any others which results in the failedmeta_yml
tests unless-k main_nf
is specified as wellI've added a simple function for the component to set it's
process_name
itself rather than it being set in other separate parts of the code. It uses the same regex expression thatmain_nf.py
uses