Skip to content

Commit cd1bb4e

Browse files
tuulosromain-intel
authored andcommitted
make docstrings consistent
1 parent 43e07e7 commit cd1bb4e

File tree

5 files changed

+37
-37
lines changed

5 files changed

+37
-37
lines changed

metaflow/plugins/aws/batch/batch_decorator.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ class BatchDecorator(StepDecorator):
7171
A swappiness value of 0 causes swapping not to happen unless absolutely
7272
necessary. A swappiness value of 100 causes pages to be swapped very
7373
aggressively. Accepted values are whole numbers between 0 and 100.
74-
use_tmpfs: bool, default False
74+
use_tmpfs : bool, default False
7575
This enables an explicit tmpfs mount for this step.
76-
tmpfs_tempdir: bool, default True
76+
tmpfs_tempdir : bool, default True
7777
sets METAFLOW_TEMPDIR to tmpfs_path if set for this step.
78-
tmpfs_size: int, optional, default None
78+
tmpfs_size : int, optional, default None
7979
The value for the size (in MiB) of the tmpfs mount for this step.
8080
This parameter maps to the `--tmpfs` option in Docker. Defaults to 50% of the
8181
memory allocated for this step.
82-
tmpfs_path: str, optional, default None
82+
tmpfs_path : str, optional, default None
8383
Path to tmpfs mount for this step. Defaults to /metaflow_temp.
8484
inferentia : int, default 0
8585
Number of Inferentia chips required for this step.
86-
efa: int, default: 0
86+
efa : int, default 0
8787
Number of elastic fabric adapter network devices to attach to container
8888
"""
8989

metaflow/plugins/aws/step_functions/schedule_decorator.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ class ScheduleDecorator(FlowDecorator):
99
1010
Parameters
1111
----------
12-
hourly : bool, default: False
12+
hourly : bool, default False
1313
Run the workflow hourly.
14-
daily : bool, default: True
14+
daily : bool, default True
1515
Run the workflow daily.
16-
weekly : bool, default: False
16+
weekly : bool, default False
1717
Run the workflow weekly.
18-
cron : str, optional, default: None
18+
cron : str, optional, default None
1919
Run the workflow at [a custom Cron schedule](https://docs.aws.amazon.com/eventbridge/latest/userguide/scheduled-events.html#cron-expressions)
2020
specified by this expression.
21-
timezone : str, optional, default: None
21+
timezone : str, optional, default None
2222
Timezone on which the schedule runs (default: None). Currently supported only for Argo workflows,
2323
which accepts timezones in [IANA format](https://nodatime.org/TimeZones).
2424
"""

metaflow/plugins/events_decorator.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ class TriggerDecorator(FlowDecorator):
4343
4444
Parameters
4545
----------
46-
event : Union[str, Dict[str, Any]], default: None
46+
event : Union[str, Dict[str, Any]], default None
4747
Event dependency for this flow.
48-
events : List[Union[str, Dict[str, Any]]], default: []
48+
events : List[Union[str, Dict[str, Any]]], default []
4949
Events dependency for this flow.
50-
options : Dict[str, Any], default: {}
50+
options : Dict[str, Any], default {}
5151
Backend-specific configuration for tuning eventing behavior.
5252
5353
MF Add To Current
@@ -227,11 +227,11 @@ class TriggerOnFinishDecorator(FlowDecorator):
227227
228228
Parameters
229229
----------
230-
flow : Union[str, Dict[str, str]], optional, default: None
230+
flow : Union[str, Dict[str, str]], optional, default None
231231
Upstream flow dependency for this flow.
232-
flows : List[Union[str, Dict[str, str]]], default: []
232+
flows : List[Union[str, Dict[str, str]]], default []
233233
Upstream flow dependencies for this flow.
234-
options : Dict[str, Any], default: {}
234+
options : Dict[str, Any], default {}
235235
Backend-specific configuration for tuning eventing behavior.
236236
237237
MF Add To Current

metaflow/plugins/kubernetes/kubernetes_decorator.py

+15-15
Original file line numberDiff line numberDiff line change
@@ -41,49 +41,49 @@ class KubernetesDecorator(StepDecorator):
4141
4242
Parameters
4343
----------
44-
cpu : int, default: 1
44+
cpu : int, default 1
4545
Number of CPUs required for this step. If `@resources` is
4646
also present, the maximum value from all decorators is used.
47-
memory : int, default: 4096
47+
memory : int, default 4096
4848
Memory size (in MB) required for this step. If
4949
`@resources` is also present, the maximum value from all decorators is
5050
used.
51-
disk : int, default: 10240
51+
disk : int, default 10240
5252
Disk size (in MB) required for this step. If
5353
`@resources` is also present, the maximum value from all decorators is
5454
used.
55-
image : str, optional, default: None
55+
image : str, optional, default None
5656
Docker image to use when launching on Kubernetes. If not specified, and
5757
METAFLOW_KUBERNETES_CONTAINER_IMAGE is specified, that image is used. If
5858
not, a default Docker image mapping to the current version of Python is used.
59-
image_pull_policy: str, default: KUBERNETES_IMAGE_PULL_POLICY
59+
image_pull_policy: str, default KUBERNETES_IMAGE_PULL_POLICY
6060
If given, the imagePullPolicy to be applied to the Docker image of the step.
61-
service_account : str, default: METAFLOW_KUBERNETES_SERVICE_ACCOUNT
61+
service_account : str, default METAFLOW_KUBERNETES_SERVICE_ACCOUNT
6262
Kubernetes service account to use when launching pod in Kubernetes.
6363
secrets : List[str], optional, default None
6464
Kubernetes secrets to use when launching pod in Kubernetes. These
6565
secrets are in addition to the ones defined in `METAFLOW_KUBERNETES_SECRETS`
6666
in Metaflow configuration.
67-
namespace : str, default: METAFLOW_KUBERNETES_NAMESPACE
67+
namespace : str, default METAFLOW_KUBERNETES_NAMESPACE
6868
Kubernetes namespace to use when launching pod in Kubernetes.
69-
gpu: int, optional
69+
gpu : int, optional
7070
Number of GPUs required for this step. A value of zero implies that
7171
the scheduled node should not have GPUs.
72-
gpu_vendor: str, default: KUBERNETES_GPU_VENDOR
72+
gpu_vendor : str, default KUBERNETES_GPU_VENDOR
7373
The vendor of the GPUs to be used for this step.
74-
tolerations : List[str], default: METAFLOW_KUBERNETES_TOLERATIONS
74+
tolerations : List[str], default METAFLOW_KUBERNETES_TOLERATIONS
7575
Kubernetes tolerations to use when launching pod in Kubernetes.
76-
use_tmpfs: bool, default: False
76+
use_tmpfs : bool, default False
7777
This enables an explicit tmpfs mount for this step.
78-
tmpfs_tempdir: bool, default: True
78+
tmpfs_tempdir : bool, default True
7979
sets METAFLOW_TEMPDIR to tmpfs_path if set for this step.
80-
tmpfs_size: int, optional, default: None
80+
tmpfs_size : int, optional, default: None
8181
The value for the size (in MiB) of the tmpfs mount for this step.
8282
This parameter maps to the `--tmpfs` option in Docker. Defaults to 50% of the
8383
memory allocated for this step.
84-
tmpfs_path: str, optional, default: /metaflow_temp
84+
tmpfs_path : str, optional, default /metaflow_temp
8585
Path to tmpfs mount for this step.
86-
persistent_volume_claims: Dict[str, str], optional, default: None
86+
persistent_volume_claims : Dict[str, str], optional, default None
8787
A map (dictionary) of persistent volumes to be mounted to the pod for this step. The map is from persistent
8888
volumes to the path to which the volume is to be mounted, e.g., `{'pvc-name': '/path/to/mount/on'}`.
8989
"""

metaflow/plugins/pypi/conda_decorator.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ class CondaStepDecorator(StepDecorator):
2424
2525
Parameters
2626
----------
27-
packages : Dict[str, str], default: {}
27+
packages : Dict[str, str], default {}
2828
Packages to use for this step. The key is the name of the package
2929
and the value is the version to use.
30-
libraries : Dict[str, str], default: {}
30+
libraries : Dict[str, str], default {}
3131
Supported for backward compatibility. When used with packages, packages will take precedence.
3232
python : str, optional
3333
Version of Python to use, e.g. '3.7.4'. A default value of None implies
3434
that the version used will correspond to the version of the Python interpreter used to start the run.
35-
disabled : bool, default: False
35+
disabled : bool, default False
3636
If set to True, disables @conda.
3737
"""
3838

@@ -276,15 +276,15 @@ class CondaFlowDecorator(FlowDecorator):
276276
277277
Parameters
278278
----------
279-
packages : Dict[str, str], default: {}
279+
packages : Dict[str, str], default {}
280280
Packages to use for this flow. The key is the name of the package
281281
and the value is the version to use.
282-
libraries : Dict[str, str], default: {}
282+
libraries : Dict[str, str], default {}
283283
Supported for backward compatibility. When used with packages, packages will take precedence.
284284
python : str, optional
285285
Version of Python to use, e.g. '3.7.4'. A default value of None implies
286286
that the version used will correspond to the version of the Python interpreter used to start the run.
287-
disabled : bool, default: False
287+
disabled : bool, default False
288288
If set to True, disables Conda.
289289
"""
290290

0 commit comments

Comments
 (0)