Introducing flake8-logging - Adam Johnson

https://adamj.eu/tech/2023/09/07/introducing-flake8-logging/

11 points · 3 comments · view on lemmy.world

3 Comments

NotSteve_@lemmy.ca · 5 pts · 2y

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

cd_slash_rmrf@programming.dev · 4 pts · 2y

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 · 2 pts · 2y

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.