-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[pyupgrade] Mark UP008 fix safe if no comments in range
#18683
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
[pyupgrade] Mark UP008 fix safe if no comments in range
#18683
Conversation
|
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! This looks right to me from a quick skim, but I think this will need to be gated behind preview since UP008 is a stable rule, as was done in #17644.
|
Could you resolve the merge conflicts here? Hopefully they're not too much trouble. |
|
@ntBre Done. Wasn't super straight-forward but manageable. Can you take a look so we can get it merged soon-ish before more conflicts arise? Thanks 🙇 |
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.
Looks good, thanks! Just a couple of nits on the docs and another merge conflict, sorry!
crates/ruff_linter/src/rules/pyupgrade/rules/super_call_with_parameters.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
…h#18683) <!-- Thank you for contributing to Ruff/ty! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? (Please prefix with `[ty]` for ty pull requests.) - Does this pull request include references to any relevant issues? --> ## Summary Mark `UP008`'s fix safe if it won't delete comments. ## Relevant Issues Fixes: astral-sh#18533 --------- Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
Summary
Mark
UP008's fix safe if it won't delete comments.Relevant Issues
Fixes: #18533