Global options
Options to control the overall behavior of Pants.
Backend: pants.core
Config section: [GLOBAL]
Basic options
colors
--[no-]colors
PANTS_COLORS
[GLOBAL]
colors = <bool>
False
Whether Pants should use colors in output or not. This may also impact whether some tools Pants runs use color.
When unset, this value defaults based on whether the output destination supports color.
concurrent
--[no-]concurrent
PANTS_CONCURRENT
[GLOBAL]
concurrent = <bool>
False
Enable concurrent runs of Pants. Without this enabled, Pants will start up all concurrent invocations (e.g. in other terminals) without pantsd. Enabling this option requires parallel Pants invocations to block on the first.
dynamic_ui
--[no-]dynamic-ui
PANTS_DYNAMIC_UI
[GLOBAL]
dynamic_ui = <bool>
True
Display a dynamically-updating console UI as Pants runs. This is true by default if Pants detects a TTY and there is no 'CI' environment variable indicating that Pants is running in a continuous integration environment.
dynamic_ui_renderer
--dynamic-ui-renderer=<DynamicUIRenderer>
PANTS_DYNAMIC_UI_RENDERER
[GLOBAL]
dynamic_ui_renderer = <DynamicUIRenderer>
indicatif-spinner, experimental-prodash
default:
indicatif-spinner
If --dynamic-ui
is enabled, selects the renderer.
exclude_target_regexp
--exclude-target-regexp="[<regexp>, <regexp>, ...]"
PANTS_EXCLUDE_TARGET_REGEXP
[GLOBAL]
exclude_target_regexp = [
<regexp>,
<regexp>,
...,
]
[]
Exclude targets that match these regexes. This does not impact file arguments.
level
-l=<LogLevel>, --level=<LogLevel>
PANTS_LEVEL
[GLOBAL]
level = <LogLevel>
trace, debug, info, warn, error
default:
info
Set the logging level.
local_cache
--[no-]local-cache
PANTS_LOCAL_CACHE
[GLOBAL]
local_cache = <bool>
True
Whether to cache process executions in a local cache persisted to disk at --local-store-dir
.
loop
--[no-]loop
PANTS_LOOP
[GLOBAL]
loop = <bool>
False
Run goals continuously as file changes are detected.
pantsd
--[no-]pantsd
PANTS_PANTSD
[GLOBAL]
pantsd = <bool>
True
Enables use of the Pants daemon (pantsd). pantsd can significantly improve runtime performance by lowering per-run startup cost, and by memoizing filesystem operations and rule execution.
process_cleanup
--[no-]process-cleanup
PANTS_PROCESS_CLEANUP
[GLOBAL]
process_cleanup = <bool>
True
If false, Pants will not clean up local directories used as chroots for running processes. Pants will log their location so that you can inspect the chroot, and run the __run.sh
script to recreate the process using the same argv and environment variables used by Pants. This option is useful for debugging.
remote_cache_read
--[no-]remote-cache-read
PANTS_REMOTE_CACHE_READ
[GLOBAL]
remote_cache_read = <bool>
False
Whether to enable reading from a remote cache.
This cannot be used at the same time as --remote-execution
.
remote_cache_write
--[no-]remote-cache-write
PANTS_REMOTE_CACHE_WRITE
[GLOBAL]
remote_cache_write = <bool>
False
Whether to enable writing results to a remote cache.
This cannot be used at the same time as --remote-execution
.
remote_execution
--[no-]remote-execution
PANTS_REMOTE_EXECUTION
[GLOBAL]
remote_execution = <bool>
False
Enables remote workers for increased parallelism. (Alpha)
Alternatively, you can use --remote-cache-read
and --remote-cache-write
to still run everything locally, but to use a remote cache.