diff --git a/nf_core/lint/__init__.py b/nf_core/lint/__init__.py index b4d0c10ff3..4f7657aec5 100644 --- a/nf_core/lint/__init__.py +++ b/nf_core/lint/__init__.py @@ -120,8 +120,10 @@ def run_linting( if subworkflow_lint_obj is not None: subworkflow_lint_obj.filter_tests_by_key(subworkflow_lint_tests) - # Set up files for modules linting test + # Set up files for component linting test module_lint_obj.set_up_pipeline_files() + if subworkflow_lint_obj is not None: + subworkflow_lint_obj.set_up_pipeline_files() # Run the pipeline linting tests try: