-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
confine pre-commit to stages #3940
confine pre-commit to stages #3940
Conversation
See https://pre-commit.com/#confining-hooks-to-run-at-certain-stages > If you are authoring a tool, it is usually a good idea to provide an appropriate `stages` property. For example a reasonable setting for a linter or code formatter would be `stages: [pre-commit, pre-merge-commit, pre-push, manual]`.
Thanks. Could you add a changelog entry since this changes user-visible behavior? |
Done. It seems now that, for some reason, the documentation cannot be generated for the Windows build. |
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
for more information, see https://pre-commit.ci
Why does this happen? |
Some bug that we didn't figure out. Apparently it's fixed now, let me retrigger CI. |
Thanks for your help @JelleZijlstra 🙂 |
When I now try to commit, I get:
reverting to edit: I think I'll open an issue. |
@MT-Cash: This should be fixed by upgrading pip install --upgrade pre-commit I think you need to use Or here:
|
This reverts commit 7686989.
Description
See https://pre-commit.com/#confining-hooks-to-run-at-certain-stages
Checklist - did you ...
CHANGES.md
if necessary?