-
Notifications
You must be signed in to change notification settings - Fork 26
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
Run Unmarked Test pre-commit only if all other hooks pass #1338
Conversation
@@ -3,6 +3,7 @@ repos: | |||
rev: 24.3.0 | |||
hooks: | |||
- id: black-jupyter | |||
log_file: devtools/pre-commit.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logs are created only when a pre-commit hook fails
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it fails on the first pass, the run again does it delete the old log file? or does it just overwrite it with a blank one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the last one deletes it at the end of each run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea it makes sure its deleted after every run
Co-authored-by: Yigit Gunsur Elmacioglu <[email protected]>
the unmarked test pre-commit hook (at least on my laptop) can take anywhere from 5-10 seconds to run, so I'd rather it only run if everything else is passing.