Output changes that would be made to a file or a directory without performing them (dry-run)

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 --diff {{path/to/file_or_directory}}

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