-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Suppress redefined-builtin for specific builtins #3263
Comments
Thanks for the report @jonathanunderwood I agree, this makes sense. |
hey, I would like to tackle this. Just to be sure that I'm in the right page, this change must go in the variables checker, and a new option should be added to the options tuple right? |
@gabrieldrs hello, are you working on this? I'd also like to see this feature and could take a shot on it if there are no work in progress. |
Hey @kapsh I haven't been able to look at this, please, feel free to take it :) |
Some builtins have little-to-no use in application code while being convenient as variables names (e.g. id, dir). New option allows to configure allowed to override names for redefined-builtin checker. Closes pylint-dev#3263
Some builtins have little-to-no use in application code while being convenient as variables names (e.g. id, dir). New option allows to configure allowed to override names for redefined-builtin checker. Closes pylint-dev#3263
Some builtins have little-to-no use in application code while being convenient as variables names (e.g. id, dir). New option allows to configure allowed to override names for redefined-builtin checker. Closes pylint-dev#3263
Some builtins have little-to-no use in application code while being convenient as variables names (e.g. id, dir). New option allows to configure allowed to override names for redefined-builtin checker. Closes pylint-dev#3263
Some builtins have little-to-no use in application code while being convenient as variables names (e.g. id, dir). New option allows to configure allowed to override names for redefined-builtin checker. Closes pylint-dev#3263
Some builtins have little-to-no use in application code while being convenient as variables names (e.g. id, dir). New option allows to configure allowed to override names for redefined-builtin checker. Closes pylint-dev#3263
Some builtins have little-to-no use in application code while being convenient as variables names (e.g. id, dir). New option allows to configure allowed to override names for redefined-builtin checker. Closes pylint-dev#3263
Some builtins have little-to-no use in application code while being convenient as variables names (e.g. id, dir). New option allows to configure allowed to override names for redefined-builtin checker. Closes pylint-dev#3263
Some builtins have little-to-no use in application code while being convenient as variables names (e.g. id, dir). New option allows to configure allowed to override names for redefined-builtin checker. Closes #3263
Is your feature request related to a problem? Please describe
I'd like in general to keep redefined-builtin warnings (i.e. W0622). But often on projects usiing a database/ORM I want to make use of
id
as a variable, and so would like to suppress that warning only for that one specific builtin.Describe the solution you'd like
It would be good to have a configuration parameter that could be set to a list of builtins to suppress that warning for.
The text was updated successfully, but these errors were encountered: