MCPcopy Create free account
hub / github.com/BerriAI/litellm / _check

Function _check

scripts/openapi_docs_gate.py:77–83  ·  view source on GitHub ↗
(root: Path, checker: Path)

Source from the content-addressed store, hash-verified

75
76
77def _check(root: Path, checker: Path) -> tuple[Violation, ...]:
78 resolved: Final = root.resolve()
79 env: Final = {
80 **os.environ,
81 "PYTHONPATH": os.pathsep.join((str(resolved), str(resolved / "enterprise"), os.environ.get("PYTHONPATH", ""))),
82 }
83 return parse_violations(_run([sys.executable, str(checker)], cwd=resolved, env=env))
84
85
86def head_violations() -> tuple[Violation, ...]:

Callers 2

head_violationsFunction · 0.70
base_countsFunction · 0.70

Calls 6

strFunction · 0.85
parse_violationsFunction · 0.85
joinMethod · 0.80
_runFunction · 0.70
getMethod · 0.65
resolveMethod · 0.45

Tested by

no test coverage detected