File tree Expand file tree Collapse file tree 15 files changed +19
-8
lines changed
Expand file tree Collapse file tree 15 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1919
2020logger = logging .getLogger (__name__ )
2121
22+
23+ #: Schema for the graph config
2224graph_config_schema = Schema (
2325 {
2426 # The trust-domain for this graph.
102104 Extra : object ,
103105 }
104106)
105- """Schema for GraphConfig"""
106107
107108
108109@dataclass (frozen = True , eq = False )
Original file line number Diff line number Diff line change 3939}
4040
4141
42+ #: Schema for try_task_config.json version 2
4243try_task_config_schema_v2 = Schema (
4344 {
4445 Optional ("parameters" ): {str : object },
Original file line number Diff line number Diff line change @@ -28,7 +28,8 @@ class ParameterMismatch(Exception):
2828 """Raised when a parameters.yml has extra or missing parameters."""
2929
3030
31- # Please keep this list sorted and in sync with docs/reference/parameters.rst
31+ #: Schema for base parameters.
32+ #: Please keep this list sorted and in sync with docs/reference/parameters.rst
3233base_schema = Schema (
3334 {
3435 Required ("base_repository" ): str ,
Original file line number Diff line number Diff line change 1010from taskgraph .util .schema import Schema
1111from taskgraph .util .templates import substitute
1212
13+ #: Schema for chunking transforms
1314CHUNK_SCHEMA = Schema (
1415 {
1516 # Optional, so it can be used for a subset of tasks in a kind
Original file line number Diff line number Diff line change 3030
3131transforms = TransformSequence ()
3232
33+ #: Schema for docker_image transforms
3334docker_image_schema = Schema (
3435 {
3536 # Name of the docker image.
Original file line number Diff line number Diff line change 2323
2424CACHE_TYPE = "content.v1"
2525
26+ #: Schema for fetch transforms
2627FETCH_SCHEMA = Schema (
2728 {
2829 # Name of the task.
5354 }
5455)
5556
56-
5757# define a collection of payload builders, depending on the worker implementation
5858fetch_builders = {}
5959
Original file line number Diff line number Diff line change 2323from taskgraph .util .schema import Schema , validate_schema
2424from taskgraph .util .set_name import SET_NAME_MAP
2525
26+ #: Schema for from_deps transforms
2627FROM_DEPS_SCHEMA = Schema (
2728 {
2829 Required ("from-deps" ): {
111112 Extra : object ,
112113 },
113114)
114- """Schema for from_deps transforms."""
115115
116116transforms = TransformSequence ()
117117transforms .add_validate (FROM_DEPS_SCHEMA )
Original file line number Diff line number Diff line change 1616from taskgraph .util .schema import Schema
1717from taskgraph .util .templates import substitute_task_fields
1818
19+ #: Schema for matrix transforms
1920MATRIX_SCHEMA = Schema (
2021 {
2122 Required ("name" ): str ,
6061 Extra : object ,
6162 },
6263)
63- """Schema for matrix transforms."""
6464
6565transforms = TransformSequence ()
6666transforms .add_validate (MATRIX_SCHEMA )
Original file line number Diff line number Diff line change 5454}
5555"""Map each type to its primary key that will be used in the route."""
5656
57+ #: Schema for notify transforms
5758NOTIFY_SCHEMA = Schema (
5859 {
5960 Exclusive ("notify" , "config" ): {
9091 },
9192 extra = ALLOW_EXTRA ,
9293)
93- """Notify schema."""
9494
9595transforms = TransformSequence ()
9696transforms .add_validate (NOTIFY_SCHEMA )
Original file line number Diff line number Diff line change 3636 Optional ("verify-hash" ): bool ,
3737}
3838
39- # Schema for a build description
39+ #: Schema for a run transforms
4040run_description_schema = Schema (
4141 {
4242 # The name of the task and the task's label. At least one must be specified,
You can’t perform that action at this time.
0 commit comments