Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: move black & isort to pre-commit #1596

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

browniebroke
Copy link
Contributor

pre-commit is great tool to run these kind of auto-formatters in isolated environments. There are more hooks which are supported, but I haven't introduced any new ones for now. I just moved 2 packages that were already used here, and use the GitHub action to run them on CI.

The step further is to use pre-commit.ci which has a couple of extra features:

  • auto-fixes PRs where possible
  • keep hooks up to date
  • does very aggressive caching, which means it runs super fast

However, this requires a maintainer to sign-up, and I appreciate that it's yet another service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants