[ruff] Add support for more re patterns (RUF055)#15764
[ruff] Add support for more re patterns (RUF055)#15764ntBre merged 4 commits intoastral-sh:mainfrom Garrett-R:garrett/14738/ruff055-more-patterns
ruff] Add support for more re patterns (RUF055)#15764Conversation
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| RUF055 | 4 | 2 | 0 | 2 | 0 |
ntBre
left a comment
There was a problem hiding this comment.
Thanks for doing this! I suggested some changes, but I think the overall approach is spot-on.
ntBre
left a comment
There was a problem hiding this comment.
Thanks, this looks great! Just a couple more much smaller changes, and I think this is good to merge.
Garrett-R
left a comment
There was a problem hiding this comment.
Thanks, good ideas! Implemented all those 😎
ntBre
left a comment
There was a problem hiding this comment.
This looks great. Thanks again for your work on this!
|
Oh and just to acknowledge the |
|
For sure, thanks for the super helpful review, learned a bunch! 😎 |
Summary
Implements some of #14738, by adding support for 6 new patterns:
Test Plan
And ran the fix on my startup's repo.
Note
One minor limitation here:
will get fixed to this (technically correct, just not nice):
This seems fine given that Ruff has this covered: the initial code should be caught by E714 and the fixed code should be caught by SIM208.