From 95a57cffa77e6b7a0918454acb04433c94cd5284 Mon Sep 17 00:00:00 2001 From: mirpedrol Date: Wed, 14 Aug 2024 13:33:09 +0200 Subject: [PATCH] run prettier on the pipeline output directory --- nf_core/pipelines/create/create.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nf_core/pipelines/create/create.py b/nf_core/pipelines/create/create.py index dfdcf07a4..05b04a542 100644 --- a/nf_core/pipelines/create/create.py +++ b/nf_core/pipelines/create/create.py @@ -368,9 +368,7 @@ def render_template(self) -> None: run_prettier_on_file(self.outdir / config_fn) # Run prettier on files - for file in self.outdir.iterdir(): - if file.is_file() and file.name.endswith(("yaml", "yml", "json")): - run_prettier_on_file(file) + run_prettier_on_file(self.outdir) def fix_linting(self): """