flake8-logging-format
flake8-logging-format copied to clipboard
Should check `.log(level, msg)` calls too
import logging
logger = logging.getLogger("test")
a, b = "a", "b"
logger.error(f"{a} {b}") # raises G004 Logging statement uses f-string
logger.log(logging.ERROR, f"{a} {b}") # should raise G004, but doesn’t