Parse a ``pyproject.toml`` file. Args: path: Path to the ``pyproject.toml`` file. Returns: The parsed TOML document.
(path: Path)
| 150 | |
| 151 | |
| 152 | def _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 | |
| 165 | def _single_source_dir(src: Path) -> Path: |
no test coverage detected