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
$ pylint repro.py
************* Module repro
repro.py:3:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
repro.py:6:0: W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
-----------------------------------
Your code has been rated at 2.50/10
The current Ruff settings (any relevant sections from your pyproject.toml).
The current Ruff version (ruff --version).
$ ruff --version
ruff 0.0.282
The text was updated successfully, but these errors were encountered:
Unfortunately we don't have the ability to know definitely whether a given variable is a logger object from the standard library. Neither does Flake8 or Pylint, so it's all a matter of heuristics that trade off false negatives vs. false positives. It looks like _LOGGER doesn't match our heuristic. (Anything ending with logger does, but it's not case insensitive.)
logging-f-string
ruff /path/to/file.py --fix
), ideally including the--isolated
flag.while
pylint
's andflake8
will both error for the latter,pyproject.toml
).ruff --version
).The text was updated successfully, but these errors were encountered: