From f93407be44b290f88fda0d816fa99e852e1b10a6 Mon Sep 17 00:00:00 2001 From: mirpedrol Date: Wed, 27 Sep 2023 16:16:40 +0200 Subject: [PATCH 1/2] test passes if component.out.version is found in script --- nf_core/subworkflows/lint/main_nf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nf_core/subworkflows/lint/main_nf.py b/nf_core/subworkflows/lint/main_nf.py index fbdef593cb..c7ce77490d 100644 --- a/nf_core/subworkflows/lint/main_nf.py +++ b/nf_core/subworkflows/lint/main_nf.py @@ -134,7 +134,7 @@ def check_main_section(self, lines, included_components): self.main_nf, ) ) - if component + ".out.versions" not in script: + if component + ".out.versions" in script: self.passed.append( ( "main_nf_include_versions", From 85b0b710812113d0b169d4f4b838f517220541cb Mon Sep 17 00:00:00 2001 From: mirpedrol Date: Wed, 27 Sep 2023 16:33:29 +0200 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20989b1d17..154c688983 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ### Linting +- Correctly pass subworkflow linting test if `COMPONENT.out.versions` is used in the script ([#2448](https://github.com/nf-core/tools/pull/2448)) + ### Modules ### Subworkflows