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): """