@@ -108,8 +108,6 @@ combine-as-imports = true
108
108
known-first-party = [" paddle" ]
109
109
110
110
[tool .ruff .lint .per-file-ignores ]
111
- # Ignore unused imports in __init__.py
112
- "__init__.py" = [" F401" , " I001" ]
113
111
# These files need tabs for testing.
114
112
"test/dygraph_to_static/test_legacy_error.py" = [" E101" , " W191" ]
115
113
# Ignore compare with True in sot unittest
@@ -124,3 +122,36 @@ known-first-party = ["paddle"]
124
122
"test/dygraph_to_static/test_loop.py" = [" C416" , " F821" ]
125
123
# Ignore unnecessary lambda in dy2st unittest test_lambda
126
124
"test/dygraph_to_static/test_lambda.py" = [" PLC3002" ]
125
+
126
+ # temp ignore unused imports in all distributed files
127
+ "python/paddle/distributed/transpiler/__init__.py" = [" F401" ]
128
+ "python/paddle/incubate/distributed/fleet/parameter_server/distribute_transpiler/__init__.py" = [" F401" , " I001" ]
129
+ "python/paddle/distributed/fleet/runtime/__init__.py" = [" F401" ]
130
+ "python/paddle/distributed/transpiler/details/__init__.py" = [" F401" , " I001" ]
131
+ "python/paddle/incubate/distributed/models/moe/gate/__init__.py" = [" F401" , " I001" ]
132
+ "python/paddle/incubate/distributed/models/moe/__init__.py" = [" F401" , " I001" ]
133
+ "python/paddle/incubate/distributed/utils/io/__init__.py" = [" F401" , " I001" ]
134
+ "python/paddle/distributed/fleet/elastic/__init__.py" = [" F401" , " I001" ]
135
+
136
+ # temp ignore isort
137
+ "python/paddle/__init__.py" = [" I001" ]
138
+ "python/paddle/amp/__init__.py" = [" I001" ]
139
+ "python/paddle/audio/__init__.py" = [" I001" ]
140
+ "python/paddle/audio/features/__init__.py" = [" I001" ]
141
+ "python/paddle/audio/functional/__init__.py" = [" I001" ]
142
+ "python/paddle/base/__init__.py" = [" I001" ]
143
+ "python/paddle/distributed/__init__.py" = [" I001" ]
144
+ "python/paddle/distributed/communication/stream/__init__.py" = [" I001" ]
145
+ "python/paddle/device/cuda/__init__.py" = [" I001" ]
146
+ "python/paddle/distributed/launch/context/__init__.py" = [" I001" ]
147
+ "python/paddle/distributed/launch/controllers/__init__.py" = [" I001" ]
148
+ "python/paddle/distributed/passes/__init__.py" = [" I001" ]
149
+ "python/paddle/distributed/rpc/__init__.py" = [" I001" ]
150
+ "python/paddle/distribution/__init__.py" = [" I001" ]
151
+ "python/paddle/framework/__init__.py" = [" I001" ]
152
+ "python/paddle/incubate/distributed/fleet/__init__.py" = [" I001" ]
153
+ "python/paddle/incubate/distributed/fleet/parameter_server/pslib/__init__.py" = [" I001" ]
154
+ "python/paddle/io/dataloader/__init__.py" = [" I001" ]
155
+ "python/paddle/jit/__init__.py" = [" I001" ]
156
+ "python/paddle/pir/__init__.py" = [" I001" ]
157
+ "python/paddle/tensor/__init__.py" = [" I001" ]
0 commit comments