Replies: 3 comments 1 reply
-
I believe this plugin only checks for functions defined in the same module as the usage. Is that correct? (I tested it too, and it seems to be the case.) We could support it, but it seems quite limited. |
Beta Was this translation helpful? Give feedback.
-
It does check for functions outside the same module, e.g:
An autofix would be nice, even if that would be limited to the same module as the usage |
Beta Was this translation helpful? Give feedback.
-
Yes, I think it checks other modules as well. (Thanks for dealing with this, especially this fast!) I used the following command to run it for a project and then increased the argument and checked the relevant mistakes.
After that, I ditched it because I didn't want to flake in the project just. I am not sure what is the general policy on this. It probably would be great to enforce it or project files, but not for built-in or common commands. There are a lot of those errors that @cleder has shown. |
Beta Was this translation helpful? Give feedback.
-
This might be addressed elsewhere, but how do I force keyword arguments or reformat the code to add them automatically?
This is what I found for Flake:
https://pypi.org/project/flake8-force-keyword-arguments/
I'd like to see the same behaviour, maybe with automatically adding them at fixing.
Beta Was this translation helpful? Give feedback.
All reactions