Format the code passed in as a string

black

  • A Python auto code formatter.
    More information: <https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

black -c "{{code}}"

click the source code to copy install black on any operating system with command-not-found.com