Skip to content

Commit

Permalink
Merge pull request #2448 from mirpedrol/fix-subworkflows-linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu authored Sep 27, 2023
2 parents 54ab4f1 + 85b0b71 commit 42ba2e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nf_core/subworkflows/lint/main_nf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 42ba2e6

Please sign in to comment.