Skip to content

Commit 7110abb

Browse files
authored
Adds sample (inactive) Toolchain config to pants(.ci).toml (#103)
1 parent 7dcd166 commit 7110abb

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

pants.ci.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,14 @@
77
dynamic_ui = false
88
colors = true
99

10+
# Set to `true` if you have a Pants remote cache provider available for CI builds
11+
remote_cache_read = false
12+
remote_cache_write = false
13+
1014
[pytest]
1115
args = ["-vv", "--no-header"]
16+
17+
# Toolchain plugin auth configuration
18+
[auth]
19+
from_env_var = "TOOLCHAIN_AUTH_TOKEN"
20+
org = "pantsbuild"

pants.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ backend_packages.add = [
1212
"pants.backend.python.typecheck.mypy",
1313
]
1414

15+
# Pants' sponsor, Toolchain, offers remote caching, which can improve your CI performance
16+
# with minimal configuration. For more details, visit https://toolchain.com
17+
18+
plugins.add = [
19+
"toolchain.pants.plugin==0.20.0",
20+
]
21+
22+
remote_cache_read = false
23+
remote_cache_write = false
24+
remote_store_address = "grpcs://cache.toolchain.com:443"
25+
remote_auth_plugin = "toolchain.pants.auth.plugin:toolchain_auth_plugin"
26+
27+
# End Toolchain-specific configuration
28+
29+
1530
[anonymous-telemetry]
1631
enabled = true
1732
repo_id = "3B1D361B-E9F1-49A8-B761-03DCC41FD58E"
@@ -48,3 +63,14 @@ lockfile_generator = "pex"
4863
# problematic system Pythons. See
4964
# https://www.pantsbuild.org/docs/python-interpreter-compatibility#changing-the-interpreter-search-path.
5065
search_path = ["<PATH>", "<PYENV>"]
66+
67+
68+
# Configuration for Toolchain instrumentation and remote caching
69+
# Visit https://toolchain.com to enable and try it on your repository
70+
71+
[toolchain-setup]
72+
repo = "pants"
73+
org = "example-python"
74+
75+
[buildsense]
76+
enable = false

0 commit comments

Comments
 (0)