Fix linting for modules.json to add support for only installing subworkflows from a repository#4287
Fix linting for modules.json to add support for only installing subworkflows from a repository#4287beatrizsavinhas wants to merge 10 commits into
modules.json to add support for only installing subworkflows from a repository#4287Conversation
Codecov Report❌ Patch coverage is
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| if not repo.startswith("http"): | ||
| failed.append(f'Repository link for {repo} doesn\'t start with "http" in `modules.json`.') |
There was a problem hiding this comment.
This change is arguably out of scope for the PR however I thought it simplified the logic.
modules.json
modules.jsonmodules.json
modules.jsonmodules.json to add support for only installing subworkflows from a repository
|
@nf-core-bot fix linting |
|
mashehu
left a comment
There was a problem hiding this comment.
Thanks for the contribution, looks good!
Could you please also add a test case for a modules_json with only subworkflow entries (and one completely empty ones) to tests/modules/test_modules_json.py?
Very fair to request tests! We were trying to quickly patch the bug to move on with development. But I'll spend some extra time adding tests as I do agree it would make the codebase better. |
Improve linting for
modules.json:subworkflowshave been installed since this was currently not allowed.modulesorsubworkflowsinstalled for a repository.PR checklist
CHANGELOG.mdis updateddocsis updated