1
1
-- -
2
2
source : crates / ruff_linter / src / rules / airflow / mod .rs
3
- snapshot_kind : text
4
3
-- -
5
4
AIR302_class_attribute .py :24 :21 : AIR302 ` airflow.Dataset` is removed in Airflow 3.0
6
5
|
@@ -329,7 +328,7 @@ AIR302_class_attribute.py:50:11: AIR302 `airflow.lineage.hook.DatasetLineageInfo
329
328
|
330
329
= help : Use ` airflow.lineage.hook.AssetLineageInfo` instead
331
330
332
- AIR302_class_attribute .py :51 :9 : AIR302 ` dataset` is removed in Airflow 3.0
331
+ AIR302_class_attribute .py :51 :9 : AIR302 [ * ] ` dataset` is removed in Airflow 3.0
333
332
|
334
333
49 | # airflow .lineage .hook
335
334
50 | dl_info = DatasetLineageInfo ()
@@ -340,6 +339,16 @@ AIR302_class_attribute.py:51:9: AIR302 `dataset` is removed in Airflow 3.0
340
339
|
341
340
= help : Use ` asset` instead
342
341
342
+ ℹ Safe fix
343
+ 48 48 |
344
+ 49 49 | # airflow .lineage .hook
345
+ 50 50 | dl_info = DatasetLineageInfo ()
346
+ 51 | - dl_info .dataset
347
+ 51 | + dl_info .asset
348
+ 52 52 |
349
+ 53 53 | hlc = HookLineageCollector ()
350
+ 54 54 | hlc .create_dataset ()
351
+
343
352
AIR302_class_attribute .py :54 :5 : AIR302 [* ] ` create_dataset` is removed in Airflow 3.0
344
353
|
345
354
53 | hlc = HookLineageCollector ()
@@ -525,7 +534,7 @@ AIR302_class_attribute.py:79:15: AIR302 [*] `get_connections` is removed in Airf
525
534
81 81 | not_an_error = NotAir302SecretError ()
526
535
82 82 | not_an_error .get_conn_uri ()
527
536
528
- AIR302_class_attribute .py :87:4: AIR302 `dataset_factories ` is removed in Airflow 3.0
537
+ AIR302_class_attribute .py :87:4: AIR302 [*] `dataset_factories ` is removed in Airflow 3.0
529
538
|
530
539
85 | pm = ProvidersManager ()
531
540
86 | pm .initialize_providers_asset_uri_resources ()
@@ -536,7 +545,17 @@ AIR302_class_attribute.py:87:4: AIR302 `dataset_factories` is removed in Airflow
536
545
|
537
546
= help : Use `asset_factories ` instead
538
547
539
- AIR302_class_attribute .py :88:4: AIR302 `dataset_factories ` is removed in Airflow 3.0
548
+ ℹ Safe fix
549
+ 84 84 | # airflow .providers_manager
550
+ 85 85 | pm = ProvidersManager ()
551
+ 86 86 | pm .initialize_providers_asset_uri_resources ()
552
+ 87 |-pm .dataset_factories
553
+ 87 |+pm .asset_factories
554
+ 88 88 | pm .dataset_factories
555
+ 89 89 | pm .dataset_uri_handlers
556
+ 90 90 | pm .dataset_to_openlineage_converters
557
+
558
+ AIR302_class_attribute .py :88:4: AIR302 [*] `dataset_factories ` is removed in Airflow 3.0
540
559
|
541
560
86 | pm .initialize_providers_asset_uri_resources ()
542
561
87 | pm .dataset_factories
@@ -547,7 +566,17 @@ AIR302_class_attribute.py:88:4: AIR302 `dataset_factories` is removed in Airflow
547
566
|
548
567
= help : Use `asset_factories ` instead
549
568
550
- AIR302_class_attribute .py :89:4: AIR302 `dataset_uri_handlers ` is removed in Airflow 3.0
569
+ ℹ Safe fix
570
+ 85 85 | pm = ProvidersManager ()
571
+ 86 86 | pm .initialize_providers_asset_uri_resources ()
572
+ 87 87 | pm .dataset_factories
573
+ 88 |-pm .dataset_factories
574
+ 88 |+pm .asset_factories
575
+ 89 89 | pm .dataset_uri_handlers
576
+ 90 90 | pm .dataset_to_openlineage_converters
577
+ 91 91 |
578
+
579
+ AIR302_class_attribute .py :89:4: AIR302 [*] `dataset_uri_handlers ` is removed in Airflow 3.0
551
580
|
552
581
87 | pm .dataset_factories
553
582
88 | pm .dataset_factories
@@ -557,7 +586,17 @@ AIR302_class_attribute.py:89:4: AIR302 `dataset_uri_handlers` is removed in Airf
557
586
|
558
587
= help : Use `asset_uri_handlers ` instead
559
588
560
- AIR302_class_attribute .py :90:4: AIR302 `dataset_to_openlineage_converters ` is removed in Airflow 3.0
589
+ ℹ Safe fix
590
+ 86 86 | pm .initialize_providers_asset_uri_resources ()
591
+ 87 87 | pm .dataset_factories
592
+ 88 88 | pm .dataset_factories
593
+ 89 |-pm .dataset_uri_handlers
594
+ 89 |+pm .asset_uri_handlers
595
+ 90 90 | pm .dataset_to_openlineage_converters
596
+ 91 91 |
597
+ 92 92 | # airflow .secrets .base_secrets
598
+
599
+ AIR302_class_attribute .py :90:4: AIR302 [*] `dataset_to_openlineage_converters ` is removed in Airflow 3.0
561
600
|
562
601
88 | pm .dataset_factories
563
602
89 | pm .dataset_uri_handlers
@@ -568,6 +607,16 @@ AIR302_class_attribute.py:90:4: AIR302 `dataset_to_openlineage_converters` is re
568
607
|
569
608
= help : Use `asset_to_openlineage_converters ` instead
570
609
610
+ ℹ Safe fix
611
+ 87 87 | pm .dataset_factories
612
+ 88 88 | pm .dataset_factories
613
+ 89 89 | pm .dataset_uri_handlers
614
+ 90 |-pm .dataset_to_openlineage_converters
615
+ 90 |+pm .asset_to_openlineage_converters
616
+ 91 91 |
617
+ 92 92 | # airflow .secrets .base_secrets
618
+ 93 93 | base_secret_backend = BaseSecretsBackend ()
619
+
571
620
AIR302_class_attribute .py :94:21: AIR302 [*] `get_conn_uri ` is removed in Airflow 3.0
572
621
|
573
622
92 | # airflow .secrets .base_secrets
0 commit comments