[refurb] Add fixes for FURB101, FURB103#20520
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.
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.
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.
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