feat: microgen - upgrade _to_snake_case() function#2297
Merged
gcf-merge-on-green[bot] merged 23 commits intoautogenfrom Sep 23, 2025
Merged
feat: microgen - upgrade _to_snake_case() function#2297gcf-merge-on-green[bot] merged 23 commits intoautogenfrom
_to_snake_case() function#2297gcf-merge-on-green[bot] merged 23 commits intoautogenfrom
Conversation
Migrates the empty __init__.py file to the microgenerator package.
Introduces the CodeAnalyzer class and helper functions for parsing Python code using the ast module. This provides the foundation for understanding service client structures.
Implements functions to analyze Python source files, including:
- Filtering classes and methods based on configuration.
- Building a schema of request classes and their arguments.
- Processing service client files to extract relevant information.
…ke_case function in name_utils.py to correctly convert PascalCase names containing acronyms to snake_case.
1 task
tswast
approved these changes
Sep 18, 2025
shollyman
approved these changes
Sep 23, 2025
Contributor
shollyman
left a comment
There was a problem hiding this comment.
Do you need to worry about special case acronym be
chalmerlowe
commented
Sep 23, 2025
chalmerlowe
commented
Sep 23, 2025
gcf-merge-on-green bot
pushed a commit
that referenced
this pull request
Oct 1, 2025
- [x] Follows: PR #2297 (should be merged after that PR is merged.) This PR adds a `client.py.j2` template to enable creation of the `client.py` file that contains the `BigQueryClient` class.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
testingdirectory #2296 (should be merged after that PR is merged.)This PR upgrades the
_to_snake_case()function to better handle names that have acronyms or initialisms.Also adds a
raisestatement if method name is empty.