blacken-docs icon indicating copy to clipboard operation
blacken-docs copied to clipboard

Add --check option

Open JoaquimEsteves opened this issue 2 years ago • 2 comments

✨ New argument: --check

As the name indicates this will merely check if the code would have been re-written.

A further change is that the return value of blacken-docs is now the largest error for each file. Previously if file 2 failed with an error but file 1 would be re-written then the exit code would have been 1 as opposed to the more severe 2.

Closes #277

JoaquimEsteves avatar Aug 23 '23 15:08 JoaquimEsteves

Sorry for the delay; was on holiday.

I also added the tests and the changelog.

From context I think that the changelog requires a version bump; I did so in the setup.cfg but do warn me if I've done it wrong.

JoaquimEsteves avatar Sep 11 '23 07:09 JoaquimEsteves

Dear @adamchainz,

Anything else you'd like to see before merging?

Sorry to be a bother; but since it's been a while so I decided to ping

JoaquimEsteves avatar Oct 09 '23 09:10 JoaquimEsteves