astral-sh/ruff
Make logger object name patterns configurable
Aberta
#12.613 aberto em 1 de ago. de 2024
help wantedtype-inference
Métricas do repositório
- Stars
- (47.527 estrelas)
- Métricas de merge de PR
- (Métricas PR pendentes)
Description
Currently, Ruff uses some hard-coded name "patterns" to determine whether a module-local object might be a logger (for the purposes of e.g. flake8-logging-format G rules).
We've found that we have some loggers called _LOG which aren't matched, and I was disappointed to find that these aren't configurable. Maybe this should be a setting list of regular expressions or globs or something like that?