Skip to main content
Version: 2.28 (prerelease)

python_format_strings


Substitutes values into files. See k8s backend documentation for details.

Backend: pants.backend.experimental.codegen.python_format_string


values

dict[str, str]
required

Dictionary of key/value pairs to substitute.

description

str | None
default: None

A human-readable description of the target.

Use pants list --documented :: to see all targets with descriptions.

sources

Iterable[str] | None
default: None

See k8s backend documentatiom.

tags

Iterable[str] | None
default: None

Arbitrary strings to describe a target.

For example, you may tag some test targets with 'integration_test' so that you could run pants --tag='integration_test' test :: to only run on targets with that tag.