Skip to content

chore(multiple): reformat code#16016

Merged
jskeet merged 1 commit intogoogleapis:mainfrom
jskeet:reformat
Mar 3, 2026
Merged

chore(multiple): reformat code#16016
jskeet merged 1 commit intogoogleapis:mainfrom
jskeet:reformat

Conversation

@jskeet
Copy link
Contributor

@jskeet jskeet commented Mar 3, 2026

This change is the result of running "nox -s format --no-venv --no-install" in the package directory for each of:

  • google-cloud-access-context-manager
  • googleapis-common-protos
  • grpc-google-iam-v1

This change is the result of running "nox -s format --no-venv
--no-install" in the package directory for each of:

- google-cloud-access-context-manager
- googleapis-common-protos
- grpc-google-iam-v1
@jskeet jskeet requested a review from chalmerlowe March 3, 2026 12:08
@jskeet jskeet requested review from a team as code owners March 3, 2026 12:08
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on enhancing code consistency and maintainability by applying a standard formatting tool across several Python packages. The changes primarily involve reordering import statements within generated Protobuf Python files, ensuring a uniform structure throughout the codebase.

Highlights

  • Code Reformatting: Applied automated code reformatting across multiple Python packages using the 'nox -s format' command.
  • Import Statement Consistency: Standardized the order and grouping of import statements in various _pb2.py and _pb2.pyi files for improved readability and consistency.
Changelog
  • packages/google-cloud-access-context-manager/google/identity/accesscontextmanager/v1/access_context_manager_pb2.py
    • Reordered import statements for operations_pb2 and field_mask_pb2.
  • packages/google-cloud-access-context-manager/google/identity/accesscontextmanager/v1/access_context_manager_pb2.pyi
    • Reordered import statements for several protobuf-related modules.
  • packages/google-cloud-access-context-manager/google/identity/accesscontextmanager/v1/access_level_pb2.py
    • Reordered import statements for timestamp_pb2 and expr_pb2.
  • packages/google-cloud-access-context-manager/google/identity/accesscontextmanager/v1/access_level_pb2.pyi
    • Reordered import statements for several protobuf-related modules.
  • packages/googleapis-common-protos/google/api/annotations_pb2.py
    • Reordered import statement for http_pb2.
  • packages/googleapis-common-protos/google/api/annotations_pb2.pyi
    • Reordered import statement for http_pb2.
  • packages/googleapis-common-protos/google/api/client_pb2.py
    • Reordered import statement for launch_stage_pb2.
  • packages/googleapis-common-protos/google/api/client_pb2.pyi
    • Reordered import statement for launch_stage_pb2.
  • packages/googleapis-common-protos/google/api/control_pb2.pyi
    • Reordered import statement for policy_pb2.
  • packages/googleapis-common-protos/google/api/log_pb2.pyi
    • Reordered import statement for label_pb2.
  • packages/googleapis-common-protos/google/api/metric_pb2.py
    • Reordered import statement for duration_pb2.
  • packages/googleapis-common-protos/google/api/metric_pb2.pyi
    • Reordered import statements for label_pb2 and launch_stage_pb2.
  • packages/googleapis-common-protos/google/api/monitored_resource_pb2.py
    • Reordered import statement for struct_pb2.
  • packages/googleapis-common-protos/google/api/monitored_resource_pb2.pyi
    • Reordered import statements for label_pb2 and launch_stage_pb2.
  • packages/googleapis-common-protos/google/api/service_pb2.py
    • Reordered import statements for api_pb2, type_pb2, and wrappers_pb2.
  • packages/googleapis-common-protos/google/api/service_pb2.pyi
    • Reordered import statements for several protobuf-related modules.
  • packages/googleapis-common-protos/google/cloud/common_resources_pb2.pyi
    • Reordered import statement for resource_pb2.
  • packages/googleapis-common-protos/google/cloud/location/locations_pb2.py
    • Reordered import statement for any_pb2.
  • packages/googleapis-common-protos/google/cloud/location/locations_pb2.pyi
    • Reordered import statements for annotations_pb2 and client_pb2.
  • packages/grpc-google-iam-v1/google/iam/v1/iam_policy_pb2.py
    • Reordered import statement for field_mask_pb2.
  • packages/grpc-google-iam-v1/google/iam/v1/iam_policy_pb2.pyi
    • Reordered import statements for several protobuf-related modules.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request applies automated code formatting across several packages, primarily reordering Python imports. The changes are consistent and appear to be the result of a formatting tool, improving code style uniformity. I have reviewed the changes and found no issues.

Copy link
Contributor

@chalmerlowe chalmerlowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jskeet jskeet merged commit a1aa001 into googleapis:main Mar 3, 2026
36 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants