Introducing flake8-logging - Adam Johnson (adamj.eu)
from jnovinger@programming.dev to python@programming.dev on 11 Sep 2023 18:04
https://programming.dev/post/2862576

#python

threaded - newest

NotSteve_@lemmy.ca on 11 Sep 2023 18:36 next collapse

I knew about everything except logger.exception(). I had no idea it existed but I’ll start using it!

cd_slash_rmrf@programming.dev on 11 Sep 2023 23:40 next collapse

neat write up, I’ve also run into some of the errors that ruff throws (eg don’t use f strings in logging) but didn’t really know why.

thought it was cool the author said feel free to implement in ruff in the foot notes

qwop@programming.dev on 12 Sep 2023 20:38 collapse

It’d be nice to have a rule specifically for the use of f-strings and template formatting in the same call, since that can easily be a security vulnerability.