Skip to content

Conversation

@robsdedude
Copy link
Contributor

Summary

Mark UP008's fix safe if it won't delete comments.

Relevant Issues

Fixes: #18533

@github-actions
Copy link
Contributor

github-actions bot commented Jun 15, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@robsdedude robsdedude marked this pull request as ready for review June 15, 2025 13:50
Copy link
Contributor

@ntBre ntBre left a 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.

@ntBre ntBre added rule Implementing or modifying a lint rule preview Related to preview mode features labels Jun 15, 2025
@robsdedude robsdedude requested a review from ntBre June 15, 2025 19:09
@ntBre
Copy link
Contributor

ntBre commented Jun 16, 2025

Could you resolve the merge conflicts here? Hopefully they're not too much trouble.

@robsdedude
Copy link
Contributor Author

@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 🙇

Copy link
Contributor

@ntBre ntBre left a 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!

robsdedude and others added 2 commits June 27, 2025 21:58
Co-authored-by: Brent Westbrook <36778786+ntBre@users.noreply.github.com>
@robsdedude robsdedude requested a review from ntBre June 27, 2025 23:05
@ntBre ntBre merged commit a3638b3 into astral-sh:main Jun 30, 2025
35 checks passed
@robsdedude robsdedude deleted the fix/18533-up008-fix-safe-unless-comment-exists branch June 30, 2025 13:45
iyakushev pushed a commit to iyakushev/ruff that referenced this pull request Jul 1, 2025
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Related to preview mode features rule Implementing or modifying a lint rule

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UP008 fix safety documentation is questionable

2 participants