From e98c4e835b1db22092fc93b49d2cddd7b3537d1f Mon Sep 17 00:00:00 2001 From: Yuanyuan Chen Date: Wed, 8 Oct 2025 00:16:13 +0000 Subject: [PATCH] Enable all flake8-logging-format rules (#164655) These rules are enabled by removing existing suppressions. Pull Request resolved: https://github.com/pytorch/pytorch/pull/164655 Approved by: https://github.com/janeyx99 --- .flake8 | 2 -- pyproject.toml | 2 -- 2 files changed, 4 deletions(-) diff --git a/.flake8 b/.flake8 index fa73b7b880f..2da4aa01740 100644 --- a/.flake8 +++ b/.flake8 @@ -15,8 +15,6 @@ 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 8a282325891..95997cd0e6c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -160,8 +160,6 @@ 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!