Configuration¶
ProofPod works without any configuration. When you want defaults that differ from the built-in ones, there are two files.
Precedence¶
Highest first:
- Command-line options:
pp --cpu 8 lake build - Environment variables:
PROOFPOD_CPU=8 proofpod.tomlin the project root~/.config/proofpod/config.toml- Built-in defaults
proofpod.toml¶
Lives next to your lakefile. Commit it so everyone on the project, and CI, gets the same settings.
# Limits for cloud commands. You pay for use, not for these ceilings.
cpu = 16
memory = "64G"
timeout = "4h"
# Versions to use in the cloud instead of the ones this checkout uses.
# Leave these out to follow lean-toolchain and lake-manifest.json.
lean = "v4.36.0"
mathlib = "v4.36.0"
# Use one named workspace for everyone who builds this project.
workspace = "myproject-main"
# Set to false to never copy files changed in the cloud back to the checkout.
sync_back = true
[sync]
# Extra files to leave out of the upload, on top of .gitignore.
exclude = ["data/", "*.pdf", "notebooks/"]
[env]
# Environment variables for cloud commands.
LEAN_ABORT_ON_PANIC = "1"
| Key | Type | Default | Description |
|---|---|---|---|
cpu |
number | 4 |
CPU limit in physical cores. |
memory |
string | "16G" |
Limit on allocated memory. |
timeout |
string | "1h" |
Maximum run time. |
lean |
string | from lean-toolchain |
Lean version in the cloud. |
mathlib |
string | from lake-manifest.json |
Mathlib revision in the cloud. |
workspace |
string | derived | Named workspace. |
sync_back |
boolean | true |
Copy files changed by a command back. |
sync.exclude |
list of strings | [] |
Patterns excluded from sync. |
env |
table | {} |
Environment variables for commands. |
Exclude patterns¶
Patterns use shell-style wildcards and are matched against paths relative to the project root:
data/ordataexcludes that directory and everything under it.*.pdfexcludes any file with that extension, at any depth.docs/*.pngexcludes matching files in that directory.
.lake/, .git/ and .proofpod/ are always excluded.
~/.config/proofpod/config.toml¶
Your personal defaults. It accepts the same top-level keys as proofpod.toml
(cpu, memory, timeout, lean, mathlib, workspace, sync_back), plus:
| Key | Description |
|---|---|
url |
Service URL, if you are not using https://proofpod.dev. |