Skip to content

Commit c2e8945

Browse files
authored
Format with black (Azure#2021)
1 parent f081dbd commit c2e8945

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

cli/readme.py

+26-4
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ def main(args):
7474
]
7575

7676
jobs_using_registry_components = sorted(
77-
glob.glob("jobs/pipelines-with-components/basics/**/*pipeline*.yml", recursive=True)
77+
glob.glob(
78+
"jobs/pipelines-with-components/basics/**/*pipeline*.yml", recursive=True
79+
)
7880
)
7981
jobs_using_registry_components = [
8082
job.replace(".yml", "")
@@ -123,7 +125,15 @@ def main(args):
123125
]
124126

125127
# write workflows
126-
write_workflows(jobs, jobs_using_registry_components, endpoints, resources, assets, scripts, schedules)
128+
write_workflows(
129+
jobs,
130+
jobs_using_registry_components,
131+
endpoints,
132+
resources,
133+
assets,
134+
scripts,
135+
schedules,
136+
)
127137

128138
# read existing README.md
129139
with open("README.md", "r") as f:
@@ -293,7 +303,15 @@ def write_readme(jobs, endpoints, resources, assets, scripts, schedules):
293303
print("Finished writing README.md...")
294304

295305

296-
def write_workflows(jobs, jobs_using_registry_components, endpoints, resources, assets, scripts, schedules):
306+
def write_workflows(
307+
jobs,
308+
jobs_using_registry_components,
309+
endpoints,
310+
resources,
311+
assets,
312+
scripts,
313+
schedules,
314+
):
297315
print("writing .github/workflows...")
298316

299317
# process jobs
@@ -421,6 +439,7 @@ def write_job_workflow(job):
421439
with open(f"../.github/workflows/cli-{job.replace('/', '-')}.yml", "w") as f:
422440
f.write(workflow_yaml)
423441

442+
424443
def write_job_using_registry_components_workflow(job):
425444
filename, project_dir, hyphenated = parse_path(job)
426445
folder_name = project_dir.split("/")[-1]
@@ -483,9 +502,12 @@ def write_job_using_registry_components_workflow(job):
483502
working-directory: cli/{project_dir}\n"""
484503

485504
# write workflow
486-
with open(f"../.github/workflows/cli-{job.replace('/', '-')}-registry.yml", "w") as f:
505+
with open(
506+
f"../.github/workflows/cli-{job.replace('/', '-')}-registry.yml", "w"
507+
) as f:
487508
f.write(workflow_yaml)
488509

510+
489511
def write_endpoint_workflow(endpoint):
490512
filename, project_dir, hyphenated = parse_path(endpoint)
491513
creds = CREDENTIALS

v1/python-sdk/tutorials/automl-with-azureml/automl-nlp-multilabel/automl-nlp-text-classification-multilabel.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@
477477
"outputs": [],
478478
"source": [
479479
"from azureml.automl.dnn.nlp.common.io.utils import load_model_wrapper\n",
480+
"\n",
480481
"y_transformer = load_model_wrapper(training_run).y_transformer"
481482
]
482483
},

0 commit comments

Comments
 (0)