Skip to content

Commit 8668690

Browse files
committed
Auto-generate initial docstring instead
1 parent 3638d07 commit 8668690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

componentize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def validate_source_bundle(source):
131131
sdk_mode = ghpython and ghpython.get('isAdvancedMode', False)
132132

133133
if r'"""' not in python_code and sdk_mode is False:
134-
print('Warning: {} file needs a docstring, otherwise the descriptions of the component and their inputs will be lost.'.format(code))
134+
python_code = r'"""{}"""{}{}'.format(data.get('description', 'Generated by Componentizer'), os.linesep, python_code)
135135

136136
return icon, python_code, data
137137

0 commit comments

Comments
 (0)