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.

@sijis sijis force-pushed the pre-commit-config branch from 9d72915 to 78b4a33 Compare September 7, 2023 05:42
@sijis sijis force-pushed the pre-commit-config branch from c5f8a63 to 0f7cde0 Compare July 5, 2024 05:11
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.

2 participants