Closed Glutexo closed 3 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 77.18%. Comparing base (
4280fd0
) to head (775c63f
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Rebased on the current master. Resolved conflicts. Ready for review.
Removed the unrelated reformatting. Ready for re-review/merge.
What about reformatting the codebase with Black? Then, we could add it to the CI and reject non-conforming code. JIRA card?
What about reformatting the codebase with Black?
I'm generally in favor, but 1) we don't own the repository, 2) I'm afraid Black/ruff may introduce formatting that's not compatible with Python 2.6/2.7. I think it should be on a long-term roadmap, but there are more difficult problems to be solved first. Yup, I have ever tried to enable
black
. You know, the core project was open-sourced a long time but without such code formaters. It would make tiny updates caused a lot of irrelevant changes.
All Pull Requests:
Check all that apply:
Complete Description of Additions/Changes:
To avoid confusion for developers, removed the unnecessary conditional for exception re-raise.
if last_ex
condition can never be false, because if an exception is not raised, the function hits a return clause earlier. It only gets to the conditional if an exception has been caught.A simple
raise
is enough. Without an argument, the last caught exception is re-raised by default. It’s thus equivalent toraise exc
.Card IDs: