Skip to content

Running Black on *_pb2 files #13930

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 5, 2025

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented May 3, 2025

In #13929 and #13932 I have some non-autogenerated *_pb2 files I would've liked formatted.

I could run manually or update the exclusion list.

But I'm thinking "why not just format them all?". Sure some long length can't be autofixed by Black, but it's not like it makes the run fail or anything.

We now run many autofixes on *_pb2 files. I don't see why Black couldn't apply as well.

The only manual change is in pyproject.toml

Copy link
Contributor

github-actions bot commented May 3, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Yeah, I think this is fine personally

@srittau srittau merged commit 5c7fe07 into python:main May 5, 2025
48 checks passed
@Avasam Avasam deleted the Running-Black-on--_pb2-files branch May 5, 2025 13:26
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