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