-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow safe fixes to be added in patch releases #8074
Comments
There's also the risk that a "safe" fix is actually unsafe and that wasn't caught until out of preview. |
I'd like to elevate |
#9156 is a perfect example of what I mean here. An unintended bug, but it happens, so it is to be considered. |
I don't think we have a clear consensus that this is worth changing yet. Removing this from our v0.2.0 milestone. |
I still want this 😭 |
To me the discussion should be whether we allow adding fixes in releases in general: |
To @Avasam's point here -- the fixes for RUF022 and RUF023 were both marked as "safe", and were included in the most recent patch release -- but in fact, they had the potential to introduce syntax errors in some unusual edge cases: #8402 (comment); #8402 (comment). (The rules themselves were still in preview here, but this is a good recent example of the way that fixes we think are safe might not actually be safe.) |
A few reactions (and not a decision):
|
Adding new fixes isn't really a breaking change necessitating a minor version bump, however we have it categorized as such in our current versioning policy. Somewhat asymmetrically, we allow unsafe fixes to be added in patch releases. The idea was originally that unsafe fixes required opt-in so it was okay to add them in patch releases. In general, I think new fixes should be allowed in any release.
The downside here is that users may need to change their configuration to include new fixes as unfixable on patch releases if they do not want the fix. This goes against the intent to have patch releases be free of configuration changes. However, these fixes are unlikely to be applied in a context without manual review.
If accepted, we should make this change as part of v0.2.0 and respect the current rules until then.
The text was updated successfully, but these errors were encountered: