1
1
-- -
2
2
source : crates / ruff_linter / src / rules / airflow / mod .rs
3
+ snapshot_kind : text
3
4
-- -
4
5
AIR302_class_attribute .py :24 :21 : AIR302 ` airflow.Dataset` is removed in Airflow 3.0
5
6
|
@@ -188,7 +189,7 @@ AIR302_class_attribute.py:50:11: AIR302 `airflow.lineage.hook.DatasetLineageInfo
188
189
|
189
190
= help : Use ` airflow.lineage.hook.AssetLineageInfo` instead
190
191
191
- AIR302_class_attribute .py :51 :9 : AIR302 ` dataset` is removed in Airflow 3.0
192
+ AIR302_class_attribute .py :51 :9 : AIR302 [ * ] ` dataset` is removed in Airflow 3.0
192
193
|
193
194
49 | # airflow .lineage .hook
194
195
50 | dl_info = DatasetLineageInfo ()
@@ -199,6 +200,16 @@ AIR302_class_attribute.py:51:9: AIR302 `dataset` is removed in Airflow 3.0
199
200
|
200
201
= help : Use ` asset` instead
201
202
203
+ ℹ Safe fix
204
+ 48 48 |
205
+ 49 49 | # airflow .lineage .hook
206
+ 50 50 | dl_info = DatasetLineageInfo ()
207
+ 51 | - dl_info .dataset
208
+ 51 | + dl_info .asset
209
+ 52 52 |
210
+ 53 53 | hlc = HookLineageCollector ()
211
+ 54 54 | hlc .create_dataset ()
212
+
202
213
AIR302_class_attribute .py :54 :5 : AIR302 ` create_dataset` is removed in Airflow 3.0
203
214
|
204
215
53 | hlc = HookLineageCollector ()
@@ -294,7 +305,7 @@ AIR302_class_attribute.py:79:15: AIR302 `get_connections` is removed in Airflow
294
305
|
295
306
= help : Use ` get_connection` instead
296
307
297
- AIR302_class_attribute .py :87 :4 : AIR302 ` dataset_factories` is removed in Airflow 3.0
308
+ AIR302_class_attribute .py :87 :4 : AIR302 [ * ] ` dataset_factories` is removed in Airflow 3.0
298
309
|
299
310
85 | pm = ProvidersManager ()
300
311
86 | pm .initialize_providers_asset_uri_resources ()
@@ -305,7 +316,17 @@ AIR302_class_attribute.py:87:4: AIR302 `dataset_factories` is removed in Airflow
305
316
|
306
317
= help : Use ` asset_factories` instead
307
318
308
- AIR302_class_attribute .py :88 :4 : AIR302 ` dataset_factories` is removed in Airflow 3.0
319
+ ℹ Safe fix
320
+ 84 84 | # airflow .providers_manager
321
+ 85 85 | pm = ProvidersManager ()
322
+ 86 86 | pm .initialize_providers_asset_uri_resources ()
323
+ 87 | - pm .dataset_factories
324
+ 87 | + pm .asset_factories
325
+ 88 88 | pm .dataset_factories
326
+ 89 89 | pm .dataset_uri_handlers
327
+ 90 90 | pm .dataset_to_openlineage_converters
328
+
329
+ AIR302_class_attribute .py :88 :4 : AIR302 [* ] ` dataset_factories` is removed in Airflow 3.0
309
330
|
310
331
86 | pm .initialize_providers_asset_uri_resources ()
311
332
87 | pm .dataset_factories
@@ -316,7 +337,17 @@ AIR302_class_attribute.py:88:4: AIR302 `dataset_factories` is removed in Airflow
316
337
|
317
338
= help : Use ` asset_factories` instead
318
339
319
- AIR302_class_attribute .py :89 :4 : AIR302 ` dataset_uri_handlers` is removed in Airflow 3.0
340
+ ℹ Safe fix
341
+ 85 85 | pm = ProvidersManager ()
342
+ 86 86 | pm .initialize_providers_asset_uri_resources ()
343
+ 87 87 | pm .dataset_factories
344
+ 88 | - pm .dataset_factories
345
+ 88 | + pm .asset_factories
346
+ 89 89 | pm .dataset_uri_handlers
347
+ 90 90 | pm .dataset_to_openlineage_converters
348
+ 91 91 |
349
+
350
+ AIR302_class_attribute .py :89 :4 : AIR302 [* ] ` dataset_uri_handlers` is removed in Airflow 3.0
320
351
|
321
352
87 | pm .dataset_factories
322
353
88 | pm .dataset_factories
@@ -326,7 +357,17 @@ AIR302_class_attribute.py:89:4: AIR302 `dataset_uri_handlers` is removed in Airf
326
357
|
327
358
= help : Use ` asset_uri_handlers` instead
328
359
329
- AIR302_class_attribute .py :90 :4 : AIR302 ` dataset_to_openlineage_converters` is removed in Airflow 3.0
360
+ ℹ Safe fix
361
+ 86 86 | pm .initialize_providers_asset_uri_resources ()
362
+ 87 87 | pm .dataset_factories
363
+ 88 88 | pm .dataset_factories
364
+ 89 | - pm .dataset_uri_handlers
365
+ 89 | + pm .asset_uri_handlers
366
+ 90 90 | pm .dataset_to_openlineage_converters
367
+ 91 91 |
368
+ 92 92 | # airflow .secrets .base_secrets
369
+
370
+ AIR302_class_attribute .py :90 :4 : AIR302 [* ] ` dataset_to_openlineage_converters` is removed in Airflow 3.0
330
371
|
331
372
88 | pm .dataset_factories
332
373
89 | pm .dataset_uri_handlers
@@ -337,6 +378,16 @@ AIR302_class_attribute.py:90:4: AIR302 `dataset_to_openlineage_converters` is re
337
378
|
338
379
= help : Use ` asset_to_openlineage_converters` instead
339
380
381
+ ℹ Safe fix
382
+ 87 87 | pm .dataset_factories
383
+ 88 88 | pm .dataset_factories
384
+ 89 89 | pm .dataset_uri_handlers
385
+ 90 | - pm .dataset_to_openlineage_converters
386
+ 90 | + pm .asset_to_openlineage_converters
387
+ 91 91 |
388
+ 92 92 | # airflow .secrets .base_secrets
389
+ 93 93 | base_secret_backend = BaseSecretsBackend ()
390
+
340
391
AIR302_class_attribute .py :94 :21 : AIR302 ` get_conn_uri` is removed in Airflow 3.0
341
392
|
342
393
92 | # airflow .secrets .base_secrets
0 commit comments