-
Notifications
You must be signed in to change notification settings - Fork 201
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
RO-crate content appear in the nf-core lint warning if there is a TODO #3493
base: dev
Are you sure you want to change the base?
Conversation
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.
leaving a couple of comments, otherwise is looking good!
Co-authored-by: Júlia Mir Pedrol <mirp.julia@gmail.com>
Co-authored-by: Júlia Mir Pedrol <mirp.julia@gmail.com>
Co-authored-by: Júlia Mir Pedrol <mirp.julia@gmail.com>
Co-authored-by: Júlia Mir Pedrol <mirp.julia@gmail.com>
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.
only one last comment, otherwise LGTM :)
I see the tests are failing, so we should fix this before merging. The reason is that when we create a fresh pipeline from the template, the ro-create file is not included. I think the best way would be to run nf-core pipelines ro-crate
after creating the pipeline, on our CI
else: | ||
# Check if the 'description' key is present | ||
if "description" not in graph[0]: | ||
ignored.append( |
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.
it's not true that the test is ignored if there isn't a description no? If I am following correctly you assign an empty string and the test will run and fail if the README has a description
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 for mentioning that! I changed it to simply coping the content from the readme file to the ro-crate-metadata if there's no 'description' key. Another general question would be how to handle these failed tests when it failed the ignored tests? For example this one:
Run no-core --verbose --log-file log.txt --hide-progress pipelines lint --dir nf-core-testpipeline --fail-ignored --fail-warned
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.
In the tests we are creating an empty ro-crate file (here). I think if we run nf-core pipelines ro-crate
instead, the tests will pass
Co-authored-by: Matthias Hörtenhuber <mashehu@users.noreply.github.com>
Co-authored-by: Júlia Mir Pedrol <mirp.julia@gmail.com>
else: | ||
# Check if the 'description' key is present | ||
if "description" not in graph[0]: | ||
ignored.append( |
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.
In the tests we are creating an empty ro-crate file (here). I think if we run nf-core pipelines ro-crate
instead, the tests will pass
Changes:
RO-crate-metadata.json
is ignored in lintingnf_core/pipelines/lint/rocrate_readme_sync.py
for synchronizing the content of ROcrate metadata and the repo README.The warning message mentioned here disappears when you create a new pipeline without deleting the TODO commands. But I still wonder where I should add the
--fix
flag so that the use can decide whether they want to synchronize the metadata with the readme file.PR checklist
CHANGELOG.md
is updateddocs
is updated