-
Notifications
You must be signed in to change notification settings - Fork 529
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
Can we remove npm run test
from pre-commit hook?
#2274
Comments
there was a discussion (on twitter?) a while ago where there seemed to be a consensus that -n was fine and the precommit hook is mostly for new collaborators. I don't see the harm in having it |
I actually sorta remember that discussion - and I may have been on the other side. But now I'm definitely for removing it lol. When other tools trigger the pre-commit hook ( |
I've personally never been a fan of git-hooks running as it makes the experience quite annoying when having to commit a change or something; but as well, I tend to use If asked, I'm more into removing it but I do not have a problem keeping it with the ability to bypass it 👍 |
I'm happy to follow whatever you prefer. |
I'm fine with removing it as long as it runs in CI with PR |
I agree 100% |
Closed on by #2296 |
As titled.
I'm finding it extremely annoying that all of the tests run every time I commit. We should enforce commit squashing anyways when we merge PRs so that not every commit has to be valid.
I currently pass
-n
every time I commit simply because I don't want to wait for the tests to run, but then when I usenpm version
and it commits a tag, that hook still runs and there's no way for me to disable it.Maintainers, WDYT?
The text was updated successfully, but these errors were encountered: