From 5a5b6544810b3da4764eb9b22e5b291308bd2d12 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Tue, 27 Feb 2024 04:37:17 +0000 Subject: [PATCH] [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 --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index b1fa4f9c9301..089864d2fcdb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,6 +80,7 @@ select = [ "SIM1", "W", # Not included in flake8 + "LOG", "NPY", "PERF", "PGH004",