Clinical-Genomics-Lund / nextflow_wgs

5 stars 5 forks source link

Add project pre-commit hooks #168

Open alkc opened 5 months ago

alkc commented 5 months ago

Add a pre-commit hook config to project. Useful to have linters for preventing new bugs in the auxiliary scripts.

Suggestions:

Anything else?

nf-core recommends using https://prettier.io/ as a pre-commit hook. i'm not familiar with it at all.

Jakob37 commented 5 months ago

Prettier is only for styling. It is really nice when working with JS.

I am not sure I think it is a good idea to add it is a pre commit hook. It seems it could cause an extra layer of complications. Making it easily available to run in the repo would be great though (and something that could be in the PR checklist, or even better - automatically run when pushed to GitHub).

Would be happy to discuss though