Skip to content

Commit 0e4d014

Browse files
committed
Update linting
1 parent f5b78a8 commit 0e4d014

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

nf_core/subworkflows/lint/main_nf.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def main_nf(_, subworkflow: NFCoreComponent) -> Tuple[List[str], List[str]]:
4848
state = "subworkflow"
4949
subworkflow_lines = []
5050
workflow_lines = []
51-
main_lines : dict[str, list[str]] = {}
51+
main_lines: dict[str, list[str]] = {}
5252
open_brackets = close_brackets = 0
5353
for line in lines:
5454
# Keep track of open and close brackets
@@ -131,11 +131,7 @@ def check_main_section(self, lines, included_components):
131131
return
132132
self.passed.append(("main_section", f"Subworkflow {workflow} does contain a main section", self.main_nf))
133133

134-
script = "".join([
135-
line
136-
for workflow in lines
137-
for line in lines[workflow]
138-
])
134+
script = "".join([line for workflow in lines for line in lines[workflow]])
139135

140136
# Check that all included components are used
141137
# Check that all included component versions are used

0 commit comments

Comments
 (0)