From 2d4d0799d9827797c82059d187a16932f08c8af2 Mon Sep 17 00:00:00 2001 From: Usman Rashid Date: Tue, 30 Jul 2024 18:43:15 +1200 Subject: [PATCH 1/3] Added process_high_memory to create/lint list --- nf_core/components/create.py | 1 + nf_core/modules/lint/main_nf.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nf_core/components/create.py b/nf_core/components/create.py index 5d6c411bdc..bae6487925 100644 --- a/nf_core/components/create.py +++ b/nf_core/components/create.py @@ -236,6 +236,7 @@ def _get_module_structure_components(self): "process_medium", "process_high", "process_long", + "process_high_memory", ] if self.process_label is None: log.info( diff --git a/nf_core/modules/lint/main_nf.py b/nf_core/modules/lint/main_nf.py index 81308ba5c5..5477ee9db9 100644 --- a/nf_core/modules/lint/main_nf.py +++ b/nf_core/modules/lint/main_nf.py @@ -423,7 +423,7 @@ def check_process_section(self, lines, registry, fix_version, progress_bar): def check_process_labels(self, lines): - correct_process_labels = ["process_single", "process_low", "process_medium", "process_high", "process_long"] + correct_process_labels = ["process_single", "process_low", "process_medium", "process_high", "process_long", "process_high_memory"] all_labels = [line.strip() for line in lines if line.lstrip().startswith("label ")] bad_labels = [] good_labels = [] From 423af01f9bd41b644280668a31b229cace850406 Mon Sep 17 00:00:00 2001 From: Usman Rashid Date: Tue, 30 Jul 2024 18:48:51 +1200 Subject: [PATCH 2/3] Updated changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b27dce4b5c..a56abe0acb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ - Fix linting fail on nfcore_external_java_deps if nf_schema is used ([#2976](https://github.com/nf-core/tools/pull/2976)) - Conda module linting: Include package name in log file ([#3014](https://github.com/nf-core/tools/pull/3014)) +- Fix module linting warning for process_high_memory ([#3086](https://github.com/nf-core/tools/issues/3086)) ### Download From c18d9cdbb3071dad0c221bd07e299f0909263149 Mon Sep 17 00:00:00 2001 From: Usman Rashid Date: Tue, 30 Jul 2024 18:51:48 +1200 Subject: [PATCH 3/3] Fixed linting --- nf_core/modules/lint/main_nf.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nf_core/modules/lint/main_nf.py b/nf_core/modules/lint/main_nf.py index 5477ee9db9..883d2bb3e0 100644 --- a/nf_core/modules/lint/main_nf.py +++ b/nf_core/modules/lint/main_nf.py @@ -423,7 +423,14 @@ def check_process_section(self, lines, registry, fix_version, progress_bar): def check_process_labels(self, lines): - correct_process_labels = ["process_single", "process_low", "process_medium", "process_high", "process_long", "process_high_memory"] + correct_process_labels = [ + "process_single", + "process_low", + "process_medium", + "process_high", + "process_long", + "process_high_memory", + ] all_labels = [line.strip() for line in lines if line.lstrip().startswith("label ")] bad_labels = [] good_labels = []