./pants update-build-files [args]
Format and fix safe deprecations in BUILD files.
This does not handle the full Pants upgrade. You must still manually change
pants.toml and you may need to manually address some deprecations. See Upgrade tips for upgrade tips.
This goal is run without arguments. It will run over all BUILD files in your project.
Do not write changes to disk, only write back what would change. Return code 0 means there would be no changes, and 1 means that there would be.
Format BUILD files using Black or Yapf.
[yapf].config , and
[yapf].config_discovery to change Black's or Yapf's behavior. Set
[python].interpreter_search_path to change which interpreter is used to run the formatter.
Which formatter Pants should use to format BUILD files.
Automatically fix deprecations, such as target type renames, that are safe because they do not change semantics.
Deprecated, is scheduled to be removed in version: 2.13.0.dev0.
No longer does anything as the old macros have been removed in favor of target generators.
Updated 9 months ago