Skip to content

Commit

Permalink
run pre-comit when rendering template for pipelines sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mirpedrol committed Dec 20, 2024
1 parent 20de879 commit 3cb8775
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nf_core/pipelines/create/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,9 @@ def render_template(self) -> None:
yaml.dump(config_yml.model_dump(exclude_none=True), fh, Dumper=custom_yaml_dumper())
log.debug(f"Dumping pipeline template yml to pipeline config file '{config_fn.name}'")

# Run prettier on files for pipelines sync
run_prettier_on_file([str(f) for f in self.outdir.glob("**/*")])

def fix_linting(self):
"""
Updates the .nf-core.yml with linting configurations
Expand Down

0 comments on commit 3cb8775

Please sign in to comment.