Skip to content

chore: migrate packages from black to ruff - #18135

Open
daniel-sanche wants to merge 21 commits into
mainfrom
migrate-black-to-ruff-lint
Open

chore: migrate packages from black to ruff#18135
daniel-sanche wants to merge 21 commits into
mainfrom
migrate-black-to-ruff-lint

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

As part of #18134, we identified a number of packages that are still using black for formatting, inconsistent with the rest of the repo. This PR updates them to use ruff, and re-formats the files

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

Copy link
Copy Markdown
Contributor

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 migrates the linting, import sorting, and formatting toolchain from Black to Ruff across multiple packages, resulting in widespread import reordering and minor formatting adjustments. The review feedback highlights several violations of the repository's style guide regarding localized mocking, specifically where os.path.exists is patched globally in test suites instead of mocking the local module import path. Additionally, an unnecessary parenthesized expression with a trailing comma in test_aws.py was flagged for creating an unused 1-tuple.

Comment thread packages/google-auth/tests/transport/aio/test_sessions_mtls.py
Comment thread packages/google-auth/tests/transport/test__mtls_helper.py
Comment thread packages/google-auth/tests/transport/test__mtls_helper.py
Comment thread packages/google-auth/tests/transport/test_grpc.py
Comment thread packages/google-auth/tests/test_aws.py
@daniel-sanche daniel-sanche added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 2, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 2, 2026
@daniel-sanche
daniel-sanche marked this pull request as ready for review September 3, 2026 22:50
@daniel-sanche
daniel-sanche requested review from a team as code owners September 3, 2026 22:50
@daniel-sanche
daniel-sanche requested a review from a team as a code owner September 3, 2026 22:50
@daniel-sanche
daniel-sanche requested review from julianxu-goog and removed request for a team September 3, 2026 22:50
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.

3 participants