From d8bac946da7b4a60b9c45f439a03fea4b9689d5e Mon Sep 17 00:00:00 2001 From: Nick Schrock Date: Sat, 21 Dec 2024 13:37:36 -0800 Subject: [PATCH] [components] Fix component.yaml generation to have a trailing newline (#26660) ## Summary & Motivation Without this the `component.yaml` files trigger prettier errors. ## How I Tested These Changes Manual. --- .../libraries/dagster-components/dagster_components/generate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python_modules/libraries/dagster-components/dagster_components/generate.py b/python_modules/libraries/dagster-components/dagster_components/generate.py index 56318d59e98c0..601c3132e7d78 100644 --- a/python_modules/libraries/dagster-components/dagster_components/generate.py +++ b/python_modules/libraries/dagster-components/dagster_components/generate.py @@ -25,6 +25,7 @@ def generate_component_yaml( yaml.dump( component_data, f, Dumper=ComponentDumper, sort_keys=False, default_flow_style=False ) + f.writelines([""]) def generate_component_instance(