Replies: 6 comments 4 replies
|
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. |
|
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 |
|
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. |
|
This sounds like a duplicate of #3269, unless I'm mistaken? |
|
Not sure if this is relevant, but our standard policy for selectively enforcing keywords is |
|
Would PRs for this issue be welcome from community contributions? I recognise it's neither labelled |
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions