mypy icon indicating copy to clipboard operation
mypy copied to clipboard

When black fails in CI, tell how to fix it

Open JukkaL opened this issue 3 years ago • 2 comments

If Black fails in CI, it would be nice to show prominently the exact command needed to fix the issue (possibly just black .). I guess isort could be similar. This could help new contributors who haven't used Black before.

JukkaL avatar Sep 04 '22 09:09 JukkaL

If we adopted pre-commit.ci (#13281), then black and isort would be auto-applied to PRs that violate the coding style, so contributors wouldn't need to manually fix their PRs.

AlexWaygood avatar Sep 04 '22 09:09 AlexWaygood

It would be very helpful!

sobolevn avatar Sep 05 '22 11:09 sobolevn

Closing since #13281 is merged

hauntsaninja avatar Apr 24 '23 16:04 hauntsaninja