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

[6.15.z] Add Ruff rule group B (flake8-bugbear) #13692

Conversation

Satellite-QE
Copy link
Collaborator

Cherrypick of PR: #13491

This change includes the rule addition and mostly manual changes to existing code in order to bring it in line with the new rules and avoid as many ignores as is reasonable.

I added a number of {{from err}} statements to the end of exceptions that currently include the error message. The error message being included in the raised string can be removed later, but keeping for consistency for now.

In cases where I raised from None, the raised exception is clear enough that the additional context of the parent exception isn't helpful.

cli/test_ping.py has a zip that should probably be strict.

This change includes the rule addition and mostly manual changes to
existing code in order to bring it in line with the new rules and avoid
as many ignores as is reasonable.

I added a number of {{from err}} statements to the end of exceptions that currently include the error message. The
error message being included in the raised string can be removed later, but keeping for consistency for now.

In cases where I raised from None, the raised exception is clear enough that the additional context of the parent
exception isn't helpful.

cli/test\_ping.py has a zip that should probably be strict.

(cherry picked from commit a40cdeb)
@Satellite-QE Satellite-QE requested review from a team as code owners January 9, 2024 14:47
@Gauravtalreja1 Gauravtalreja1 added No-CherryPick PR doesnt need CherryPick to previous branches 6.15.z Introduced in or relating directly to Satellite 6.15 Failed_AutoCherryPick Issue for failed/conflicted auto cherry pick of PRs labels Jan 9, 2024
@JacobCallahan JacobCallahan linked an issue Jan 9, 2024 that may be closed by this pull request
@JacobCallahan JacobCallahan merged commit 52fbe67 into 6.15.z Jan 9, 2024
10 of 11 checks passed
@JacobCallahan JacobCallahan deleted the cherry-pick-6.15.z-a40cdebbf12f256aae211aaef123902e5f2078fd branch January 9, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.15.z Introduced in or relating directly to Satellite 6.15 Failed_AutoCherryPick Issue for failed/conflicted auto cherry pick of PRs No-CherryPick PR doesnt need CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Failed-AutoCherryPick] - Add Ruff rule group B (flake8-bugbear)
3 participants