Skip to content

Conversation

@travtherobber
Copy link

@travtherobber travtherobber commented Jan 21, 2026

note: will add configuration to pyproject.toml
if needed in later commit. for now set the line
for black in format.yml directly.

Checklist

  • No CHANGELOG update needed
  • No new tests needed
  • No documentation update needed

note: will add configuration to pyproject.toml
if needed in later commit. for now set the line
for black in format.yml directly.
@google-cla
Copy link

google-cla bot commented Jan 21, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@gemini-code-assist
Copy link
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please add bug fixes, new features, breaking changes and anything else you think is worthwhile mentioning to the master (unreleased) section of CHANGELOG.md. If no CHANGELOG update is needed add the following to the PR description: [x] No CHANGELOG update needed

@travtherobber
Copy link
Author

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@google-cla recheck

@github-actions github-actions bot dismissed their stale review January 21, 2026 01:40

CHANGELOG updated or no update needed, thanks! 😄

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Please add bug fixes, new features, breaking changes and anything else you think is worthwhile mentioning to the master (unreleased) section of CHANGELOG.md. If no CHANGELOG update is needed add the following to the PR description: [x] No CHANGELOG update needed

@github-actions github-actions bot dismissed their stale review January 21, 2026 02:09

CHANGELOG updated or no update needed, thanks! 😄

@travtherobber
Copy link
Author

I've updated the workflow to exclude the auto-generated _pb2.py and _pb2.pyi files using the --exclude flag. This prevents the linter from fighting with the machine-generated code.

I also pinned the Black version (25.12.0) and set the line length to 120 to match the project's pyproject.toml configuration.

@mike-hunhoff
Copy link
Collaborator

Hi @travtherobber , can you provide some background for this PR? e.g. what does this address that our existing workflows and development requirements don't?

@travtherobber
Copy link
Author

Hi @travtherobber , can you provide some background for this PR? e.g. what does this address that our existing workflows and development requirements don't?

it was requested in the issue "CI: black create auto-format workflow #2827"


jobs:
format:
if: github.actor != 'github-actions[bot]'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why this exclusion here?

permissions:
contents: write
steps:
- uses: actions/checkout@v4
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please use hashes here like in the other workflow files.

run: pip install black==25.12.0

- name: Run Black
run: black . --line-length 120 --exclude '.*_pb2.pyi?$'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we reuse the CI way to run black here or does this not work? This way we don't have to worry about keeping these in sync.

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