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

Remove outdated workaround for a bug in black formatter #6045

Merged

Conversation

pavoljuhas
Copy link
Collaborator

The bug appears to be fixed in our required version of black per
psf/black#1629

The bug appears to be fixed in our required version of black per
psf/black#1629
@pavoljuhas pavoljuhas requested review from a team, vtomole and cduck as code owners March 21, 2023 18:34
@pavoljuhas pavoljuhas requested a review from dabacon March 21, 2023 18:34
# black "${args[@]}" "${format_files[@]}"
# exit $?
LOGS="$(black "${args[@]}" "${format_files[@]}" 2>&1)"
black "${args[@]}" "${format_files[@]}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to re-run the formatter on all files?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do we need to re-run the formatter on all files?

No, the previous version would still exit with error if black failed.
The removed code was only showing a message about the bug in black.

@pavoljuhas pavoljuhas added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Mar 21, 2023
@pavoljuhas pavoljuhas merged commit 4607dd1 into quantumlib:master Mar 21, 2023
36 checks passed
@pavoljuhas pavoljuhas deleted the clean-redundant-black-workaround branch March 21, 2023 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Tells CirqBot to sync and merge this PR. (If it's running.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants