MCPcopy Create free account
hub / github.com/InfinitiBit/graphbit / _check_dependencies

Method _check_dependencies

scripts/validation-runner.py:194–208  ·  view source on GitHub ↗

Check dependency consistency.

(self)

Source from the content-addressed store, hash-verified

192 return False, "", str(e)
193
194 def _check_dependencies(self) -> Tuple[bool, str, Optional[str]]:
195 """Check dependency consistency."""
196 try:
197 # Check Cargo.lock is up to date
198 cargo_path = shutil.which("cargo")
199 if not cargo_path:
200 raise FileNotFoundError("cargo executable not found in PATH")
201 result = subprocess.run([cargo_path, "check", "--locked"], capture_output=True, text=True, cwd=self.root_path, timeout=300, shell=False) # nosec
202
203 return result.returncode == 0, result.stdout, result.stderr if result.returncode != 0 else None
204
205 except subprocess.TimeoutExpired:
206 return False, "", "Dependency check timed out"
207 except Exception as e:
208 return False, "", str(e)
209
210 def _check_version_consistency(self) -> Tuple[bool, str, Optional[str]]:
211 """Check version consistency across files."""

Callers

nothing calls this directly

Calls 1

runMethod · 0.80

Tested by

no test coverage detected