Skip to content
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

Replaced YAPF with black #265

Merged
merged 1 commit into from
Sep 15, 2023
Merged

Conversation

mristin
Copy link
Collaborator

@mristin mristin commented Sep 15, 2023

YAPF was giving us headaches as the reformattings were neither intuitive nor predictable. We wanted to upgrade for Python 3.11, and tried to upgrade YAPF to the latest version. As it caused a lot of reformatting, we decided to drop YAPF and replace it with black.

Black seems a bit more stable, and subjectively gives us nicer formatting.

YAPF was giving us headaches as the reformattings were neither intuitive
nor predictable. We wanted to upgrade for Python 3.11, and tried to
upgrade YAPF to the latest version. As it caused a lot of reformatting,
we decided to drop YAPF and replace it with black.

Black seems a bit more stable, and subjectively gives us nicer
formatting.
@mristin mristin merged commit a3061d2 into master Sep 15, 2023
1 check failed
@mristin mristin deleted the mristin/Replaced-yapf-with-black branch September 15, 2023 08:14
mristin added a commit that referenced this pull request Oct 4, 2023
We replaced YAPF with black in #265, but forgot to update the comments
to turn formatting off on a small number of snippets where the default
formatting was unreadable.

In this patch, we replaced the comments to instruct black to skip these
snippets.
mristin added a commit that referenced this pull request Oct 4, 2023
We replaced YAPF with black in #265, but forgot to update the comments
to turn formatting off on a small number of snippets where the default
formatting was unreadable.

In this patch, we replaced the comments to instruct black to skip these
snippets.
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.

1 participant