* chore: lazy imports Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * chore: bump flake8-lazy, rerun Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * chore: include android Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * fix: after rebase Assisted-by: ClaudeCode:claude-sonnet-4.6 Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * chore: autofix __lazy_modules__ Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * chore: avoid touching resources Signed-off-by: Henry Schreiner <henryfs@princeton.edu> * chore: bump flake8-lazy to v0.8.2, rerun Assisted-by: ClaudeCode:claude-sonnet-4-6 --------- Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
20 lines
542 B
Python
20 lines
542 B
Python
from __future__ import annotations
|
|
|
|
__lazy_modules__ = {"cibuildwheel.util", "json"}
|
|
|
|
import json
|
|
|
|
from cibuildwheel.util import resources
|
|
|
|
TYPE_CHECKING = False
|
|
if TYPE_CHECKING:
|
|
from typing import Any
|
|
|
|
|
|
def get_schema(tool_name: str = "cibuildwheel") -> dict[str, Any]:
|
|
"Get the stored complete schema for cibuildwheel settings."
|
|
assert tool_name == "cibuildwheel", "Only cibuildwheel is supported."
|
|
|
|
with resources.CIBUILDWHEEL_SCHEMA.open(encoding="utf-8") as f:
|
|
return json.load(f) # type: ignore[no-any-return]
|