From f713abab16cb98c15f486e9822dd261279cce252 Mon Sep 17 00:00:00 2001 From: PyTorch MergeBot Date: Wed, 8 Oct 2025 00:55:17 +0000 Subject: [PATCH] Revert "Enable all flake8-logging-format rules (#164655)" This reverts commit e98c4e835b1db22092fc93b49d2cddd7b3537d1f. Reverted https://github.com/pytorch/pytorch/pull/164655 on behalf of https://github.com/malfet due to Looks like it broke lint in trunk, see https://hud.pytorch.org/hud/pytorch/pytorch/bd3b98a8a5d68ddc84b20a4609b9ea90998bf95b/1?per_page=50&name_filter=lintrunner-noclang&mergeEphemeralLF=true ([comment](https://github.com/pytorch/pytorch/pull/164655#issuecomment-3379209309)) --- .flake8 | 2 ++ pyproject.toml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.flake8 b/.flake8 index 2da4aa01740e..fa73b7b880fd 100644 --- a/.flake8 +++ b/.flake8 @@ -15,6 +15,8 @@ ignore = B007,B008,B017,B019,B023,B028,B903,B904,B905,B906,B907,B908,B910 # these ignores are from flake8-comprehensions; please fix! C407, + # these ignores are from flake8-logging-format; please fix! + G100,G101,G200 # these ignores are from flake8-simplify. please fix or ignore with commented reason SIM105,SIM108,SIM110,SIM111,SIM113,SIM114,SIM115,SIM116,SIM117,SIM118,SIM119,SIM12, # SIM104 is already covered by pyupgrade ruff diff --git a/pyproject.toml b/pyproject.toml index 95997cd0e6c5..8a2823258916 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -160,6 +160,8 @@ ignore = [ "EXE001", "F405", "FURB122", # writelines + # these ignores are from flake8-logging-format; please fix! + "G101", # these ignores are from ruff NPY; please fix! "NPY002", # these ignores are from ruff PERF; please fix!