Skip to content

Commit b6aa3fb

Browse files
authored
feat(internal/librarian): make formatLibrary a no-op for Python (#3731)
Generation already includes formatting, so formatLibrary should currently just skip (rather than fail) when its input is a Python library. Related to #3730
1 parent 600677d commit b6aa3fb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

internal/librarian/generate.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ func formatLibrary(ctx context.Context, language string, library *config.Library
285285
return dart.Format(ctx, library)
286286
case languageRust:
287287
return rust.Format(ctx, library)
288+
case languagePython:
289+
// Python formatting is currently performed in the generate phase.
290+
// TODO(https://github.com/googleapis/librarian/issues/3730): separate
291+
// generation and formatting for Python.
292+
return nil
288293
}
289294
return fmt.Errorf("language %q does not support formatting", language)
290295
}

0 commit comments

Comments
 (0)