flake8-print icon indicating copy to clipboard operation
flake8-print copied to clipboard

adding support for `traceback.print_*` functions

Open 5cat opened this issue 2 years ago • 0 comments

Hi,

It would be great to add all the print functions of traceback.print_* in this library detection as well.

I'm using this plugin as a way to stop the usage of prints without the use of loggers, traceback.print_* sometimes are used in this context

try:
   a = 1/0
except Exception as e:
   print(e)
   traceback.print_exc()

I would like to prohibit these functions as well since they follow the same merit, have the print name in it, and from the standard library

5cat avatar Jul 16 '23 15:07 5cat