flake8-string-format
flake8-string-format copied to clipboard
Feature request: forbid format usage instead if str call
It would be nice to forbid {0}.format(...), {}.format(...) and so on calls, str should be used instead.
If the project is maintained and feature request will be accepted, I would be happy to make pull request.
So you only mean to change "{0}".format(x)/"{}".format(x) into str(x)? In that case I'm not sure if that is in scope of this plugin, although if the changes are not that large I'd be willing to merge a potential pull request.