adamchainz/blacken-docs

A `--check` mode would be useful

simonw opened this issue · 3 comments

I like to run tests in CI against pull requests that fail if the user forgot to run Black or various other tools.

Black provides a useful --check option for this:

black --check .

It would be great if blacken-docs had the equivalent.

please search the issue tracker

Sorry - didn't see these:

Thanks - I figured out how to solve my problem from those comments. Wrote it up here: https://til.simonwillison.net/sphinx/blacken-docs