blackdoc: apply black to code in documentation#

blackdoc extracts code from documentation, applies black to it and, in reformatting mode, writes the formatted code back to the file.

The currently supported formats are:

  • doctest

  • ipython

  • rst

Documentation#

User Guide

Help & Reference