migrate code style checks to pre-commit #1579
Labels
CI
Continuous Integration configuration
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
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: