-
Notifications
You must be signed in to change notification settings - Fork 220
Update modules lint #1125
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
Update modules lint #1125
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #1125 +/- ##
==========================================
- Coverage 70.57% 69.83% -0.74%
==========================================
Files 48 49 +1
Lines 4849 4883 +34
==========================================
- Hits 3422 3410 -12
- Misses 1427 1473 +46
Continue to review full report at Codecov.
|
|
I think maybe don't prompt to create the meta if it's not there? Just fail. As this command is primarily used by automated CI I'm a bit wary of adding user interactivity. Could potentially create it with |
|
Sorry, for consistency with other tests I think the pattern is to ignore the test if the file isn't there. But then the Maybe we can have a hard fail if there are module files there and no JSON though? That's a bit of a special case. |
|
Okay, leaving the prompt out 👍 The |
|
Okay so now it just fails when no And |
ErikDanielsson
left a comment
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.
Looks good! Seems to work for me locally as well. However, do we want the lint to fail on missing meta.yaml files? Quite a few modules are failing due to this when running the command on the most recent version of rnaseq.
Co-authored-by: Erik Danielsson <[email protected]>
|
Thanks for the review @ErikDanielsson ! |
|
Alright I also added the |
This PR updates
nf-core modules lintto deal with the module versioning to address #1114A
modules.jsontemplate file is also added to the pipeline template.The following was implemented:
modules.jsonand load it (ask to create if not there)git_shaexists in themodules.jsongit_shato themodule_changestest, which then compares the local file contents to the specific commit hashmodules.jsonto the warning list for thefile_existslint checkIt's still a bit of a work in progress, mostly because for some reason the tests for modules are being super slow now ...
PR checklist
CHANGELOG.mdis updateddocsis updated