Open dorschw opened 1 week ago
I am having this same issue - It's so annoying. Please lmk if you find a workaround.
The PLE1205 for detecting logger's is very basic at the moment. All it does is match on the variable name (this does not apply for logging
calls). This is because Ruff has no type inference capabilities (we're working on it) that allow reasoning about how values flow through the program. This means there's no immediate fix here.
I recommend you disable PLE1205
in your project if you're consistently using (ignore = ["PLE1205"]
) or ignore it on a per file level: per-file-ignores = { "file.py": ["PLE1205"]}
Thank you for the response :D
In loguru, the formatting isn't
%
-based, but{}
-based, see here. When configuring it as the logger object and writinga false-positive PLE1205 is raised.