MCPcopy
hub / github.com/reflex-dev/reflex / _load_pyproject

Function _load_pyproject

scripts/check_min_deps.py:152–162  ·  view source on GitHub ↗

Parse a ``pyproject.toml`` file. Args: path: Path to the ``pyproject.toml`` file. Returns: The parsed TOML document.

(path: Path)

Source from the content-addressed store, hash-verified

150
151
152def _load_pyproject(path: Path) -> dict:
153 """Parse a ``pyproject.toml`` file.
154
155 Args:
156 path: Path to the ``pyproject.toml`` file.
157
158 Returns:
159 The parsed TOML document.
160 """
161 with path.open("rb") as f:
162 return tomllib.load(f)
163
164
165def _single_source_dir(src: Path) -> Path:

Callers 3

_workspace_package_dirsFunction · 0.85
discover_packagesFunction · 0.85
check_dev_pinsFunction · 0.85

Calls 1

openMethod · 0.80

Tested by

no test coverage detected