-
Notifications
You must be signed in to change notification settings - Fork 31
try pre-commit.ci? #379
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
Comments
Sure! I figure that regular developers will learn to install the pre-commit hooks and never need it, while non-regular developers will benefit from getting the fix applied. I guess the downside would be if you push, dont think about it, and then push again with a conflict and need to figure out what has happened. |
this sounds great |
Yes, though it's always fine to I think it will be a good experiment to see if it's more or less disruptive to have these auto-fix commits. I'm not sure, honestly, but I am hopeful. |
While I was initially hesitant on using pre-commit.ci for the same reasons raised by @betatim:
I've changed my mind though.
|
We've used pre-commit.ci in the executablebooks repositories and I think that it is really helpful. For one thing, it makes it easier to make edits / propose changes to a repository directly from the web UI of GitHub. Before we used it, people would often make a PR via the GitHub editor, but forget to do something like remove trailing whitespace. Then the PR would fail pre-commit tests, and the person would have a major extra hurdle of needing to clone locally, fix, run pre-commit, etc. With pre-commit.ci it "just works" and very quickly at that. So in short, I have grown in my appreciation of this service and am a stronger +1 on using it. |
Sounds like we should give it a try |
I'm very happy about pre-commit.ci overall and look to see it adopted in our github org generally! |
Yup, I think we can call this a success |
The author of pre-commit is building pre-commit.ci, a CI service just for running pre-commit. The main thing it adds over our custom pre-commit runs is that it will automatically push a fix commit to PRs if needed, so that nobody needs to fix their own linter errors (assuming they are fixable like formatting). It also apparently can be faster, since it has environment caching designed for pre-commit. Plus it will do dependency bumps for pre-commit hooks like dependabot for other dependencies.
Should we give it a try, maybe just on e.g. z2jh which has the most pre-commit config at the moment?
The text was updated successfully, but these errors were encountered: