Repository navigation
Handle ruff error RET508. - #15406
Merged
Merged
Conversation
draghuram
requested review from
WilliamJamieson,
dhomeier,
nstarman,
saimn and
taldcroft
as code owners
September 29, 2023 20:25
Contributor
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
nstarman
reviewed
Sep 30, 2023
nstarman
left a comment
Member
There was a problem hiding this comment.
Most stuff looks good. I think the votable tree can do with a more artful pruning.
Signed-off-by: Raghuram Devarakonda <[email protected]>
draghuram
force-pushed
the
ruff-RET508
branch
from
September 30, 2023 15:40
6aeeaf5 to
e9df6d7
Compare
nstarman
reviewed
Sep 30, 2023
nstarman
left a comment
Member
There was a problem hiding this comment.
This is much cleaner! I like that we get to decent the whole thing and reduce all the breaks to 1 (+ a continue) 👍
Member
|
Let's let a io-votable maintainer take a look. Ping @pllim @tomdonaldson @tboch |
pllim
reviewed
Sep 30, 2023
mhvk
approved these changes
Oct 1, 2023
mhvk
left a comment
Contributor
There was a problem hiding this comment.
All changes look like improvements to me, thanks! (approving units and table in particular, though really all look good)
1 task
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request is to address ruff error RET508. Some times, it is more readable to have an explicit "else" clause but I agree that in most cases, it is better not to have it. It reduces the indentation and makes the code more readable.
Changes need to be reviewed carefully though all tests pass and the diff looks fine to me.