fix
pants fix [args]
Autofix source code.
This goal runs tools that make 'semantic' changes to source code, where the meaning of the code may change.
See also:
-
[The
fmt
goal](https://www.pantsbuild.org/2.26/reference/goals/fix will run code-editing tools that may make only syntactic changes, not semantic ones. Thefix
includes running thesefmt
tools by default (see theskip_formatters
option to control this). -
The
lint
goal will validate code is formatted, by running these fixers and checking there's no change. -
Documentation about formatters for various ecosystems, such as: Python, JVM, SQL
Backend: pants.core
Config section: [fix]