keewis / blackdoc

run black on documentation code snippets
https://blackdoc.readthedocs.io
MIT License
47 stars 4 forks source link

btw #103

Closed asottile closed 3 years ago

asottile commented 3 years ago

https://github.com/asottile/blacken-docs

keewis commented 3 years ago

Thanks for the link, @asottile. I'm aware of that project, but I didn't find out about it until after I had written this, and even then it didn't support doctest for quite some time.

Both projects are also not completely the same: when implementing blackdoc I made some design choices that allow certain features blacken-docs doesn't have (some intentionally), e.g. --check and --diff. Of course, the same is true for blackdoc (markdown support is missing, for example).

I'll close this for now but will keep an eye on blacken-docs.

MarcoGorelli commented 2 years ago

The projects look different, anyway:

asottile commented 2 years ago

blacken-docs can also do python files