Module ds.configs

Configs are a path and data.

Global variables

var Membership

Mapping of paths to whether they are members.

Classes

class Config (path: pathlib.Path, data: Dict[str, Any], tasks: Dict[str, ForwardRef('Task')] = <factory>, members: Dict[pathlib.Path, bool] = <factory>)

ds configuration.

Expand source code
@dataclasses.dataclass
class Config:
    """ds configuration."""

    path: Path
    """Path to the configuration file."""

    data: Dict[str, Any]
    """Configuration data."""

    # `tasks` and `members` are loaded by tool-specific parsers

    tasks: Tasks = dataclasses.field(default_factory=dict)
    """Task definitions."""

    members: Membership = dataclasses.field(default_factory=dict)
    """Workspace members mapped to `True` for active members."""

Class variables

var path : pathlib.Path

Path to the configuration file.

var data : Dict[str, Any]

Configuration data.

var tasks : Dict[str, Task]

Task definitions.

var members : Dict[pathlib.Path, bool]

Workspace members mapped to True for active members.