Flake8 doesn't follow imports and thus will never enforce this. Sent from my phone with my typo-happy thumbs. Please excuse my brevity
On Thu, Apr 14, 2022, 11:53 Markus Toivonen <markus.toivo...@hoxhunt.com> wrote: > Hello! > > Is it currently possible with Flake8 or any of its plugins to enforce the > code to use keyword arguments in function calls, when the function is > imported from a module/library? At least flake8-functions does not support > this. > > If not, I would like to request this (most likely best suited as optional) > rule to be added. My motivation is that it would make code more readable, > as one would understand the role of the passed variables better without > checking the target function or its documentation. > > > > Example: > > *from foo import bar* > > > > *baz = ""* > > *bar(baz=baz) # Allowed* > > *bar(baz) # Not allowed* > > > > Thank you for your time and all the work you do regarding Flake8. > > Markus > _______________________________________________ > code-quality mailing list -- code-quality@python.org > To unsubscribe send an email to code-quality-le...@python.org > https://mail.python.org/mailman3/lists/code-quality.python.org/ > Member address: graffatcolmin...@gmail.com >
_______________________________________________ code-quality mailing list -- code-quality@python.org To unsubscribe send an email to code-quality-le...@python.org https://mail.python.org/mailman3/lists/code-quality.python.org/ Member address: arch...@mail-archive.com