You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was done somewhat on purpose because I was concerned that alternative formatting styles may be in use, like {}. Avoiding a message when there was no % marker was a heuristic to allow other styles. See: #17 (comment)
I think I misunderstood the logging docs a bit, though? So perhaps we can expand the feature to the “no markers” situation.
Do you think my research is correct? It would be good if you could double-check my research.
Also, it would handy if you could make a PR expanding the rule. I won’t be able to prioritize it for a while.
Python Version
3.11
flake8 Version
6.1.0
Package Version
N/A Using pre-commit to get this and I am not sure how to find out
Description
Basically, the arg counting doesn't cover the case where the string lacks any
%s
, but still has arguments.Example:
logger.error("Test Example.", 42)
The text was updated successfully, but these errors were encountered: