Skip to content

Comments

[pylint] Do not offer fix for raw strings (PLE251)#16132

Merged
MichaReiser merged 3 commits intoastral-sh:mainfrom
InSyncWithFoo:PLE251
Feb 13, 2025
Merged

[pylint] Do not offer fix for raw strings (PLE251)#16132
MichaReiser merged 3 commits intoastral-sh:mainfrom
InSyncWithFoo:PLE251

Conversation

@InSyncWithFoo
Copy link
Contributor

Summary

Resolves #13294, follow-up to #13882.

At #13882, it was concluded that a fix should not be offered for raw strings. This change implements that. The five rules in question are now no longer always fixable.

Test Plan

cargo nextest run and cargo insta test.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 13, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

@MichaReiser MichaReiser added rule Implementing or modifying a lint rule fixes Related to suggested fixes for violations and removed rule Implementing or modifying a lint rule labels Feb 13, 2025
@MichaReiser MichaReiser enabled auto-merge (squash) February 13, 2025 08:32
@MichaReiser MichaReiser merged commit 7d2e40b into astral-sh:main Feb 13, 2025
20 checks passed
@InSyncWithFoo InSyncWithFoo deleted the PLE251 branch February 13, 2025 13:40
@dhruvmanila dhruvmanila added the bug Something isn't working label Feb 24, 2025
dhruvmanila added a commit that referenced this pull request Feb 24, 2025
## Summary

This is mainly on me for not noticing this during the last release but I
noticed in the last changelog that there's only 1 bug fix which didn't
seem correct as I saw multiple of them so I looked at a couple of PRs
that are in "Rule changes" section and the PRs that were marked with the
`bug` label was categorized there because

1. It _also_ had other labels like `rule` and `fixes`
(#16080,
#16110,
#16219, etc.)
2. Some PRs didn't have the `bug` label (but the issue as marked as
`bug`) but _only_ labels like "fixes"
(#16011,
#16132, etc.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fixes Related to suggested fixes for violations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PLE2510, PLE2512, PLE2513, PLE2514, and PLE2515 fixes add escape sequences to raw strings

3 participants