We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3da80e2 commit 0e758a4Copy full SHA for 0e758a4
wpiformat/wpiformat/__init__.py
@@ -512,7 +512,12 @@ def main():
512
run_pipeline(task_pipeline, args, files)
513
514
# Lint is run last since previous tasks can affect its output.
515
- task_pipeline = [CMakeFormat(), PyFormat(), Lint()]
+ # CMakeFormat doesn't work on high core count machines.
516
+ if mp.cpu_count() > 60:
517
+ task_pipeline = [PyFormat(), Lint()]
518
+ print("warning: Skipping CMake formatter due to too high CPU count.")
519
+ else:
520
+ task_pipeline = [CMakeFormat(), PyFormat(), Lint()]
521
522
# Check tasks are all batch tasks
523
invalid_tasks = [
0 commit comments