JBKahn / flake8-print

flake8
MIT License
121 stars 21 forks source link

adding support for `traceback.print_*` functions #60

Open 5cat opened 1 year ago

5cat commented 1 year ago

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