feat: remove pre-commit#8406
Conversation
paulbalandan
left a comment
There was a problem hiding this comment.
I agree to this change. In fact, when committing in vscode, I always use the --no-verify option and let Github Actions do the job.
lonnieezell
left a comment
There was a problem hiding this comment.
Thank you for this. My only other thought was that we had a message reminding about the commands they can run on commit but that's not necessary and can be done later if desired.
|
Regarding the extra work for the maintainers I believe to have seen bots respond to PRs in other repositories, where they automatically call out the failed CI Checks and give hints on how to fix. Like: If this is possible it could replace the very frequent comment of "Please fix the coding style", "Commits must be signed" and so on. |
|
I use it. But if you all agree, I don't disagree. |
|
@michalsn Can we keep |
|
@kenjis So you only want to remove it from the
For a couple of days, we had our checks failing on the |
|
@michalsn Yes, thanks. I agree with making the hook opt-in. |
|
Thanks, everyone! |
Description
This PR removes
pre-commitand all related code.While the idea of
pre-commitwas a good one, IMO today it brings developers more problems than good. The number of errors that can occur, even if we haven't touched some files, is simply too high. This can cause many users (even experienced ones) to abandon the changes they are preparing and not send a PR.A side effect may be that maintainers will have more work to do in handling PRs, but it's worth the risk.
Checklist: