-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Should bad-option-value
be raised for moved or deleted messages?
#6514
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
Comments
I think it makes sense to now raise bad-option-value if the message exists but is not activated for this interpreter or configuration; We have a list of deleted messages in |
I was not aware of the issues with disabling That said, I think there is also some benefit to raising the message as it will show users that certain options or messages are no longer supported even if they thought they were. (For example, I found that On the other hand, I agree that this might require more effort from users to upgrade to a newer version. I do think that updating a configuration file is a little less worse than updating your actual code so for me this would be allowable. |
Once we have #5462 it becomes painless, until then let's not break user configurations. |
@Pierre-Sassoulas Let's not put too much hope on #5462. That has now become an ini-to-toml-converting, missing-options-removing, interactive, context-aware autoupgrader... 😅 For me, being able to disable |
Looking into #3312 during the beta sounds like a plan. Maybe we can leave this open for visibility during the beta if decide to pre-release as is. |
See #3312 for a possible solution. Based on the emoji's I think we all agree that fixing #3312 before releasing |
Question
Are we sure we want to emit
bad-option-value
in 2.14 for people'spylintrc
files that have, say,no-self-use
orstar-args
disabled? That seems a little strict to me, making people QA their config files.This is new in 2.14 for config files, but not new in python code itself. I think we should discuss both. The config file is potentially worth revisiting during the beta.
This is more of a headache because there is no way to disable
bad-option-value
currently. See #3312 and in particular #3312 (comment). I think we're making this a bit worse with the 2.14 change.Documentation for future user
We might consider not raising
bad-option-value
for deleted or moved-to-extension messages, just typos/parse errors. We already have constants for deleted messages.Additional context
No response
The text was updated successfully, but these errors were encountered: