fmt

Autoformat source code.

See here for how to opt in to specific formatters, along with how to configure them:

  • Black
  • Docformatter
  • isort
  • Yapf

If you activate multiple formatters, Pants will run them sequentially so that they do not overwrite each other. You may need to update each formatter's config file to ensure that it is compatible with the other activated formatters.


Did this page help you?