biocommons / biocommons.example

Template for new biocommons packages, and source of configuration for periodic updates to derived packages
1 stars 1 forks source link

add precommit hook support #12

Closed reece closed 9 months ago

reece commented 11 months ago

https://pre-commit.com/ https://github.com/pre-commit/pre-commit-hooks https://verdantfox.com/blog/view/how-to-use-git-pre-commit-hooks-the-hard-way-and-the-easy-way

In order to ensure that invocation of tools (pytest, black, etc,) is consistent across contexts (command line, commit hook, github actions), all invocations should go through make targets. The tools should not be invoked directly. In some cases, this will lead to trivial pass through (e.g., make black might merely invoke black) but it will also ensure consistency if later add flags to black invocation or create meta targets like make cqa.

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.