nf-core / tools

Python package with helper tools for the nf-core community.
https://nf-co.re
MIT License
241 stars 190 forks source link

Create pre-commit hooks #3141

Open edmundmiller opened 2 months ago

edmundmiller commented 2 months ago

Adds pre-commit hooks config for the repo.

Blocked by #3140 currently. Docs if anyone has any ideas https://pre-commit.com/#new-hooks

mashehu commented 2 months ago

I think this should be in the pipeline template, no?

edmundmiller commented 2 months ago

They could be in the pipeline template, but I just made a seperate hook that just works for the pipeline and added that to the template.

Might want to look at the stages options. I'm thinking pre-merge-commit and pre-push so it's not too annoying.