initial commit

This commit is contained in:
2026-02-12 00:45:31 -08:00
commit 5f168f370b
3024 changed files with 804889 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import os
def cpu_count() -> int:
"""Get the number of CPUs."""
# Force sequential execution if NO_PARALLEL is set
if "GITHUB_ACTIONS" in os.environ:
return 1
no_parallel = os.environ.get("NO_PARALLEL", "0") in ["1", "true", "True"]
if no_parallel:
return 1
return os.cpu_count() or 1