Change Default Variable Name of The Auto-Fix of EM101 #15304
-
Hey there fellows! So I have been using ruff a lot lately and I ran into EM101. My team and I were writing like this:
and then EM101 popped up and suggested an auto-fix.
Now this is a fine suggestion and fix, but I really would love to be able to change the default variable Is this something that exists ? can this be done? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @remchuk I can see how this is annoying, but I don't think introducing this option is the right solution. Instead, I'd rather improve our IDE support so that Ruff automatically selects the |
Beta Was this translation helpful? Give feedback.
Hi @remchuk
I can see how this is annoying, but I don't think introducing this option is the right solution. Instead, I'd rather improve our IDE support so that Ruff automatically selects the
msg
variable after applying the fix in "rename-mode" so that you can either hit enter (accept the name as is) or rename the variable however you like.