Skip to content

[th/black-reformat] style: adjust code so that different black versions format it the same #42

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
Jun 5, 2024

Conversation

thom311
Copy link
Collaborator

@thom311 thom311 commented Jun 4, 2024

The formatting that python black produces depends on the version of the tool. The authoritative version is the one from the github action, that is, "24.4.2" which we currently install via pip.

On current Fedora 40, we have 22.12.0.

It's cumbersome if different versions fight over the formatting. Even if the correct solution is to use the same version as used in github, we can avoid this problem by rewriting the code a bit, so that it formats the same with versions 22.12.0 and 24.4.2.

The formatting that python black produces depends on the version of the
tool. The authoritative version is the one from the github action,
that is, "24.4.2" which we currently install via pip.

On current Fedora 40, we have 22.12.0.

It's cumbersome if different versions fight over the formatting. Even if
the correct solution is to use the same version as used in github, we
can avoid this problem by rewriting the code a bit, so that it formats
the same with versions 22.12.0 and 24.4.2.
@wizhaoredhat
Copy link
Collaborator

LGTM

@wizhaoredhat wizhaoredhat merged commit 5b22d08 into ovn-kubernetes:main Jun 5, 2024
1 of 2 checks passed
@thom311 thom311 deleted the th/black-reformat branch June 5, 2024 15:01
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.

2 participants