未验证 提交 b166581a 编写于 作者: G gouzil 提交者: GitHub

[CodeStyle][PLC3002][PLE1205] simplify lambda and add missing placeholder to...

[CodeStyle][PLC3002][PLE1205] simplify lambda and add missing placeholder to logger template (#52133)
上级 af6f262d
......@@ -119,7 +119,7 @@ select = [
# Pylint
# "PLC0414",
# "PLC1901",
# "PLC3002",
"PLC3002",
"PLE0100",
"PLE0101",
# "PLE0116",
......@@ -128,7 +128,7 @@ select = [
"PLE0604",
"PLE0605",
"PLE1142",
# "PLE1205",
"PLE1205",
"PLE1206",
"PLE1307",
# "PLE1310",
......@@ -166,3 +166,4 @@ unfixable = [
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"setup.py" = ["UP036"]
"python/paddle/fluid/tests/unittests/dygraph_to_static/test_lambda.py" = ["PLC3002"]
......@@ -543,7 +543,7 @@ class DistributedStrategy:
getattr(msg, field.name), name, configs
)
else:
logger.debug("not message:", name)
logger.debug("not message: %s", name)
if name not in configs:
continue
if field.label == FieldDescriptor.LABEL_REPEATED:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册