-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[refurb] Add fixes for FURB101, FURB103
#20520
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
Conversation
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| FURB103 | 442 | 0 | 0 | 442 | 0 |
| FURB101 | 398 | 0 | 0 | 398 | 0 |
|
@ntBre I think this PR can include furb103 as well, in essence the code will be almost identical |
refurb] Add fix forread-whole-file (FURB101)refurb] Add fixes for FURB101, FURB103
ntBre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! This looks great overall, I just had a few nits and a couple of slightly larger suggestions.
...linter/src/rules/refurb/snapshots/ruff_linter__rules__refurb__tests__preview_FURB103.py.snap
Show resolved
Hide resolved
# Conflicts: # crates/ruff_linter/src/preview.rs
# Conflicts: # crates/ruff_linter/src/preview.rs
ntBre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I just had one clarification about earlier suggestion, but this looks good to me otherwise.
ntBre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I went through a few of the ecosystem results, and they all look right to me too.
Summary
Part of
PTH-*fixes: #19404 (comment)Test Plan
cargo nextest run furb