1

PyCharm has a lot of inspection rules to warn me if my programming style is either unmodern or problamatic.

Because string formatting with % is not as clean as .format(), I want to force myself to use the newer approach. I would like that PyCharm supports me and warns me if I use % to format strings instead of .format(). How can I achieve this?

Community
  • 1
  • 1
tjati
  • 5,453
  • 3
  • 35
  • 54

1 Answers1

1

Searching PyCharm's forum for custom inspection reveals topic titled Is there a way to create custom inspections in pycharm, with the following response from Dmitry Jemerov:

Yes. The inspections have to be written in Java, though. You can find plugin development information at http://confluence.jetbrains.net/display/IDEADEV/PluginDevelopment

If you're still interested :) I could provide more details.

Piotr Dobrogost
  • 39,915
  • 36
  • 232
  • 353