Module ds.parsers.pyproject_pdm

pyproject.toml parser for pdm.

Functions

def loads(s: str, /, *, parse_float: ParseFloat = builtins.float) ‑> dict[str, typing.Any]

Parse TOML from a string.

def parse_workspace(config: Config, key: str = 'tool.pdm.workspace') ‑> Dict[pathlib.Path, bool]

pdm does not officially support workspaces.

See: https://github.com/pdm-project/pdm/issues/1505

def parse_tasks(config: Config, key: str = 'tool.pdm.scripts') ‑> Dict[str, Task]

Tasks are in tool.pdm.scripts.

See: https://pdm-project.org/latest/usage/scripts/#user-scripts

Features: - Supported (non-standard): disabled task - Supported: task.help - task description - Supported: task.cmd - basic task - Supported: task.args - argument interpolation - Supported: task.cwd - working directory - Supported: task.depends - composite task - Supported: task.env - environments - Supported: task.keep_going - error suppression