Skip to main content
Version: 2.25 (dev)

thrift


General Thrift IDL settings (https://thrift.apache.org/).

Backend: pants.backend.codegen.thrift.apache.python

Config section: [thrift]

Basic options

dependency_inference

--[no-]thrift-dependency-inference
PANTS_THRIFT_DEPENDENCY_INFERENCE
pants.toml
[thrift]
dependency_inference = <bool>
default: True

Infer Thrift dependencies on other Thrift files by analyzing import statements.

Advanced options

tailor

--[no-]thrift-tailor
PANTS_THRIFT_TAILOR
pants.toml
[thrift]
tailor = <bool>
default: True

If true, add thrift_sources targets with the tailor goal.

Deprecated options

None

None