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, https://github.com/mlazos
This commit is contained in:
Yuanyuan Chen
2025-10-19 00:59:28 +00:00
committed by PyTorch MergeBot
parent c4f6619330
commit 3255e7872b
55 changed files with 131 additions and 140 deletions

View File

@ -896,11 +896,11 @@ class BaseSchedulerNode:
except ValueError as e:
# We don't know how to estimate runtime for this collective,
# falling back to 0
log.info(e)
log.info(e) # noqa: G200
return 0
except TypeError as e:
# this happens when the collective is not of type ir._CollectiveKernel
log.info(e)
log.info(e) # noqa: G200
return 0
elif is_wait(self.node):
@ -3366,7 +3366,7 @@ class Scheduler:
future.result()
except Exception as e:
if fusion_log.isEnabledFor(logging.DEBUG):
fusion_log.debug(
fusion_log.debug( # noqa: G200
"Exception in compiling %s: %s",
"prologue" if not epilogue_fusion else "epilogue",
str(e),
@ -3442,7 +3442,7 @@ class Scheduler:
# triton will unpredictably error with valid prologue fusions
except Exception as e:
if fusion_log.isEnabledFor(logging.DEBUG):
fusion_log.debug(
fusion_log.debug( # noqa: G200
"Exception in compiling %s: %s",
"prologue" if not epilogue_fusion else "epilogue",
str(e),