Skip to main content
Version: 2.25 (dev)

fmt and fix

Autoformat and autofix source code.


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

  • Autoflake
  • Black
  • Docformatter
  • isort
  • Pyupgrade
  • yapf

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