You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pre-commit is a tool to register hooks to run upon git commit and/or when a user invokes the utility. its also a convenient place to configure all the code linters (isort, black, ruff, mypy) that we might want develops to invoke. the tool can be easily run from CI, too.
the benefit is that our users can then run the same code style checks as in CI with minimal effort. we don't have to share a huge bash one-liner for local development.
The text was updated successfully, but these errors were encountered:
pre-commit is a tool to register hooks to run upon git commit and/or when a user invokes the utility. its also a convenient place to configure all the code linters (isort, black, ruff, mypy) that we might want develops to invoke. the tool can be easily run from CI, too.
i'd propose that we migrate the config here:
capa/.github/workflows/tests.yml
Lines 36 to 45 in 2cd6b8b
to pre-commit. a close example is here: https://github.com/williballenthin/ucutils/blob/master/.pre-commit-config.yaml
the benefit is that our users can then run the same code style checks as in CI with minimal effort. we don't have to share a huge bash one-liner for local development.
The text was updated successfully, but these errors were encountered: