Skip to content

Running Black on *_pb2 files - #13930

Merged
srittau merged 1 commit into
python:mainfrom
Avasam:Running-Black-on--_pb2-files
May 5, 2025
Merged

srittau merged 1 commit into
python:mainfrom
Avasam:Running-Black-on--_pb2-files

Conversation

@Avasam

@Avasam Avasam commented May 3, 2025 •

Copy link
Copy Markdown
Collaborator

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

@github-actions

github-actions Bot commented May 3, 2025

Copy link
Copy Markdown
Contributor

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

@AlexWaygood AlexWaygood left a comment

Copy link
Copy Markdown
Member

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
@Avasam
Avasam deleted the Running-Black-on--_pb2-files branch May 5, 2025 13:26
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
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