From 63d5de8fe69b2ede6eb63a5693d65747c47a37a4 Mon Sep 17 00:00:00 2001 From: Emilio Palumbo Date: Tue, 19 Mar 2024 18:07:30 +0100 Subject: [PATCH 1/2] Rename main.nf.test template for modules and subworkflows --- nf_core/components/create.py | 2 +- nf_core/module-template/tests/{main.nf.test => main.nf.test.j2} | 0 .../tests/{main.nf.test => main.nf.test.j2} | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename nf_core/module-template/tests/{main.nf.test => main.nf.test.j2} (100%) rename nf_core/subworkflow-template/tests/{main.nf.test => main.nf.test.j2} (100%) diff --git a/nf_core/components/create.py b/nf_core/components/create.py index d2169e3a72..6c9c01b496 100644 --- a/nf_core/components/create.py +++ b/nf_core/components/create.py @@ -394,7 +394,7 @@ def _get_component_dirs(self): if self.component_type == "modules": file_paths["environment.yml"] = component_dir / "environment.yml" file_paths["tests/tags.yml"] = component_dir / "tests" / "tags.yml" - file_paths["tests/main.nf.test"] = component_dir / "tests" / "main.nf.test" + file_paths["tests/main.nf.test.j2"] = component_dir / "tests" / "main.nf.test" return file_paths diff --git a/nf_core/module-template/tests/main.nf.test b/nf_core/module-template/tests/main.nf.test.j2 similarity index 100% rename from nf_core/module-template/tests/main.nf.test rename to nf_core/module-template/tests/main.nf.test.j2 diff --git a/nf_core/subworkflow-template/tests/main.nf.test b/nf_core/subworkflow-template/tests/main.nf.test.j2 similarity index 100% rename from nf_core/subworkflow-template/tests/main.nf.test rename to nf_core/subworkflow-template/tests/main.nf.test.j2 From 8a5c964f2b9e9b407799bbe7981e7771b5d25e5f Mon Sep 17 00:00:00 2001 From: nf-core-bot Date: Wed, 20 Mar 2024 09:00:15 +0000 Subject: [PATCH 2/2] [automated] Fix code linting --- nf_core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nf_core/utils.py b/nf_core/utils.py index 461f5a9bad..4271e971a1 100644 --- a/nf_core/utils.py +++ b/nf_core/utils.py @@ -548,7 +548,7 @@ def safe_get(self, url): else: return r elif request.status_code in self.return_unauthorised: - raise RuntimeError(f"GitHub API PR failed, probably due to an expired GITHUB_TOKEN.") + raise RuntimeError("GitHub API PR failed, probably due to an expired GITHUB_TOKEN.") return request