FernLab / cookiecutter-py-package

Cookiecutter template for Python packages. Fork from https://github.com/audreyfeldroy/cookiecutter-pypackage.git
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Improve pre-commit configuration. #1

Closed romulogoncalves closed 3 weeks ago

romulogoncalves commented 1 month ago
Jen-Wenzel commented 1 month ago

Implemented the above mentioned changes -> https://github.com/FernLab/cookiecutter-py-package/pull/13

romulogoncalves commented 4 weeks ago

@Jen-Wenzel would it be possible to make the old make lint the default option and have the new pre-commit as optional? We think the new pre-commit is nice for developers like our team, but maybe not so easy to understand by the researchers. Let me know what do you think?

Jen-Wenzel commented 4 weeks ago

Sure, I can do that. Or would it also make a difference to remove auto-fixes (or have them optional) and just save all the output to the artifact? @romulogoncalves

romulogoncalves commented 4 weeks ago

I would say when we use pre-commit the auto-fixes should be there. The option to use the old make lint, it is for now for backward compatibility, but also it is easy to use by non-developers. Once the pre-commit is mature enough and we see we can make the default option, then it is just a question of update the menu options of cookiecutter.

Jen-Wenzel commented 3 weeks ago

Can be closed due to successful merge of changes -> https://github.com/FernLab/cookiecutter-py-package/commit/a65f6b39f95d1c5035762319273f85885bd2474c