diff --git a/pyproject.toml b/pyproject.toml index 94490cd5c48bb428083cdbca0c8ade519763d548..8899e87df1fb7b358fbeaf5a16cc7a1bf7ff9dbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] diff --git a/python/paddle/distributed/fleet/base/distributed_strategy.py b/python/paddle/distributed/fleet/base/distributed_strategy.py index cb991de4c22207f0a46a857808e8461da8a20697..455f7bca37528ec03b0b9cbf4babf0f608d505b7 100755 --- a/python/paddle/distributed/fleet/base/distributed_strategy.py +++ b/python/paddle/distributed/fleet/base/distributed_strategy.py @@ -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: