[BE]: Enable ruff LOG checks (#120674)

Enable LOG error codes in ruff to find bad usages of the logger: https://docs.astral.sh/ruff/rules/#flake8-logging-log
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120674
Approved by: https://github.com/ezyang
This commit is contained in:
Aaron Gokaslan
2024-02-27 04:37:17 +00:00
committed by PyTorch MergeBot
parent b6139b1e57
commit 5a5b654481

View File

@ -80,6 +80,7 @@ select = [
"SIM1",
"W",
# Not included in flake8
"LOG",
"NPY",
"PERF",
"PGH004",