-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Configuration option for FURB109 (in_tuple.py
)?
#100
Comments
See #44. Basically, with To answer your question though, I do think I users should be specify whether they want to use To fix this, we could implement something like this for the command line:
And something like this for the config file: [tool.refurb]
# your settings here
[tool.refurb.data.FURB109]
style = "list" Then, when running the FURB109 check, we would pass in the key values that the user supplied (if any). The check would be free to do what it wants with the data (though we would want to document this for the user). What are your thoughts? |
I like the idea of F109 (I've wanted something like this for over 6 years, see pylint-dev/pylint#1001 😅)! However, my codebase currently somewhat consistently uses lists (given that I mostly see lists for homogenous data, but tuples for heterogenous data).
Due to that, I'd have to disable this checker currently - it'd be nice if there was a way to configure it to assume lists (and maybe sets) instead. Even its description seems to imply that there's no one true choice ("it is best to pick one and stick with it").
The text was updated successfully, but these errors were encountered: