-
-
Notifications
You must be signed in to change notification settings - Fork 914
Add a verbose hook option #695
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
Conversation
asottile
left a comment
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.
Looks good! I think only the first test is necessary -- let's remove the other two (they're well written 👏 -- but not necessary)
| (b'Hello World',), | ||
| 0, | ||
| stage=False, | ||
| ) |
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.
this test is probably sufficient, the others I don't think are super necessary (we already test all three of those scenarios)
|
Also looks like there's a test that needs pre-commit/tests/repository_test.py Lines 791 to 792 in 7f0b427
|
779d0b0 to
38eff71
Compare
|
Thanks @asottile for the immediate review. Should I do a PR to document the flag in pre-commit.github.io ? |
|
@bagerard that would be awesome :) source is https://github.com/pre-commit/pre-commit.github.io (branch from |
|
Oops, one small comma needed :) ( |
38eff71 to
b319d6f
Compare
|
Indeed I should have thought to run pre-commit on pre-commit :) Here you go |
|
Thanks again! |
Relates to #689
It adds a
verboseflag that can be set per hook and that allows stdout to be printed even when hook returned 0