Repository navigation
Fix flake8 bugbear - #14692
Fix flake8 bugbear#14692
Conversation
Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
|
Could you point us to some background info which toolset made these changes and why, like is this a change to our current |
Yes, this is removing some ignores from our
|
Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
cd18342 to
0ccce0f
Compare
Thanks; it's becoming a bit difficult to follow up on which tools we have decided to use, and with which settings. Hopefully this can be discussed at the meeting next week. I agree that changes affecting functionality like B028 (some of the others above may fall into that category as well, not sure) should be committed separately. It seems, as @saimn's example shows, which |
I agree. I've removed that commit to tackle in a future PR. |
| _ = self.left.inverse | ||
| _ = self.right.inverse |
There was a problem hiding this comment.
I do not like this, please use the # noqa instead
There was a problem hiding this comment.
Are there any instances where B018 comes over as helpful? If not, maybe that rule should also be moved to a possible later PR, in particular as looking e.g. at astral-sh/ruff#3831 its implementation still seems to be evolving.
Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
0ccce0f to
931adf3
Compare
Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
931adf3 to
9085fea
Compare
Signed-off-by: Nathaniel Starkman (@nstarman) <[email protected]>
9085fea to
75f3417
Compare
|
I also wondered about just ignoring |
mhvk
left a comment
There was a problem hiding this comment.
Looks great! Indeed, for timeseries/binned.py, this corrects an actual buglet.
@WilliamJamieson - could you check that your comments are addressed, so this can go in?
|
Thanks @eerovaher & @mhvk for the reviews! |
Was that once valid in some Python version? |
|
Re: #14692 (comment) I think with this change, |
|
It is OK - |
Ruff flake8 bugbear fixes