Skip to content

Commit 0eb29c5

Browse files
committed
chore: increase pants lint batch_size to reduce ruff process spawning
Default batch_size of 128 spawns ~48 ruff processes for the current codebase (~6.1k Python files). Bumping to 1024 reduces this to ~6, cutting per-process startup overhead while still allowing parallelism across cores.
1 parent 584d934 commit 0eb29c5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

pants.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ extra_env_vars = ["BACKEND_BUILD_ROOT=%(buildroot)s", "HOME"]
4747
attempts_default = 3
4848
timeout_default = 180
4949

50+
[lint]
51+
# Batch more files per linter invocation to reduce ruff process startup overhead.
52+
# Default is 128; raising it cuts the number of spawned ruff processes ~8x.
53+
batch_size = 1024
54+
5055
[python]
5156
enable_resolves = true
5257
# When changing this main Python version:

0 commit comments

Comments
 (0)