Source code for doitoml.schema._v0_schema

from typing import Any, Dict, List, Literal, TypedDict, Union

from typing_extensions import Required

Action = Union["ShellAction", "TokenAction", "ActorAction"]
"""
action.

oneOf
"""


ActorAction = Dict[str, Any]
"""
actor action.

a custom action
"""


CommandTokens = Dict[str, List[str]]
""" command tokens. """


[docs]class DoitomlMetadataa(TypedDict, total=False): """doitoml Metadataa.""" cwd: Required[str] """ Required property """ env: "EnvironmentVariables" log: Required[List["_DoitomlMetadataaLogItem"]] """ Required property """ skip: Union[str, Union[int, float], None, Dict[str, Any]] """ oneOf """ source: Required[str] """ Required property """
[docs]class DoitomlSchema(TypedDict, total=False): """doitoml Schema. schema for ``doitoml`` configuration """ env: Required["EnvironmentVariables"] """ Required property """ paths: Required["PathTokens"] """ Required property """ tasks: Required[Dict[str, "Task"]] """ named tasks Required property """ tokens: Required["CommandTokens"] """ Required property """
EnvironmentVariables = Dict[str, str] """ environment variables. """
[docs]class Metadata(TypedDict, total=False): """Metadata.""" doitoml: "DoitomlMetadataa"
PathTokens = Dict[str, List["_ArrayOfPathsItem"]] """ path tokens. """ ShellAction = str """ shell action. """
[docs]class Task(TypedDict, total=False): """Task.""" actions: List["Action"] calc_dep: List["_ArrayOfPathsItem"] doc: str file_dep: List["_ArrayOfPathsItem"] meta: "Metadata" name: str targets: List["_ArrayOfPathsItem"] title: str uptodate: List["Uptodate"] verbosity: "_TaskVerbosity" watch: List["_ArrayOfPathsItem"]
TokenAction = List[str] """ token action. """ Uptodate = Union[bool, str, Dict[str, Any], None] """ uptodate. oneOf """ _ArrayOfPathsItem = str """ minLength: 1 """ _DoitomlMetadataaLogItem = Union[str, None] """ oneOf """ _TaskVerbosity = Union[Literal[1], Literal[2], Literal[3]] _TASKVERBOSITY_1: Literal[1] = 1 """The values for the '_TaskVerbosity' enum""" _TASKVERBOSITY_2: Literal[2] = 2 """The values for the '_TaskVerbosity' enum""" _TASKVERBOSITY_3: Literal[3] = 3 """The values for the '_TaskVerbosity' enum"""