FICHA · AUR

blacken-docs

Run black on python code blocks in documentation files

  • documentation-code-formatter
  • CLI
  • Dev
  • DOCUMENTATION
  • Launchable
  • Runs in terminal
official+codex · reviewed · May 30, 2026 description in en

Description

Python code blocks inside documentation files can be formatted with Black. It is useful for maintainers who want examples in Markdown or reStructuredText to match project formatting style.

Documentation formatters can rewrite examples and affect rendered docs. Review diffs before publishing.

How to run

blacken-docs

Commands: blacken-docs

Permissions

Permissions not analysed for this source yet.