---
source: crates/ruff_linter/src/rules/airflow/mod.rs
---
AIR301 [*] `airflow.providers.amazon.aws.auth_manager.avp.entities.AvpEntities.DATASET` is removed in Airflow 3.0
  --> AIR301_provider_names_fix.py:11:1
   |
 9 | from airflow.security.permissions import RESOURCE_DATASET
10 |
11 | AvpEntities.DATASET
   | ^^^^^^^^^^^^^^^^^^^
12 |
13 | # airflow.providers.openlineage.utils.utils
   |
help: Use `AvpEntities.ASSET` from `airflow.providers.amazon.aws.auth_manager.avp.entities` instead.
   |
10 |
   - AvpEntities.DATASET
11 + AvpEntities
12 |
   |

AIR301 [*] `airflow.providers.openlineage.utils.utils.DatasetInfo` is removed in Airflow 3.0
  --> AIR301_provider_names_fix.py:14:1
   |
13 | # airflow.providers.openlineage.utils.utils
14 | DatasetInfo()
   | ^^^^^^^^^^^
15 | translate_airflow_dataset()
   |
help: Use `AssetInfo` from `airflow.providers.openlineage.utils.utils` instead.
   |
6  |     translate_airflow_dataset,
7  + AssetInfo,
8  | )
--------------------------------------------------------------------------------
14 | # airflow.providers.openlineage.utils.utils
   - DatasetInfo()
15 + AssetInfo()
16 | translate_airflow_dataset()
   |

AIR301 [*] `airflow.providers.openlineage.utils.utils.translate_airflow_dataset` is removed in Airflow 3.0
  --> AIR301_provider_names_fix.py:15:1
   |
13 | # airflow.providers.openlineage.utils.utils
14 | DatasetInfo()
15 | translate_airflow_dataset()
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
16 |
17 | # airflow.secrets.local_filesystem
   |
help: Use `translate_airflow_asset` from `airflow.providers.openlineage.utils.utils` instead.
   |
6  |     translate_airflow_dataset,
7  + translate_airflow_asset,
8  | )
--------------------------------------------------------------------------------
15 | DatasetInfo()
   - translate_airflow_dataset()
16 + translate_airflow_asset()
17 |
   |

AIR301 [*] `airflow.secrets.local_filesystem.load_connections` is removed in Airflow 3.0
  --> AIR301_provider_names_fix.py:18:1
   |
17 | # airflow.secrets.local_filesystem
18 | load_connections()
   | ^^^^^^^^^^^^^^^^
19 |
20 | # airflow.security.permissions
   |
help: Use `load_connections_dict` from `airflow.secrets.local_filesystem` instead.
   |
7  | )
   - from airflow.secrets.local_filesystem import load_connections
8  + from airflow.secrets.local_filesystem import load_connections, load_connections_dict
9  | from airflow.security.permissions import RESOURCE_DATASET
--------------------------------------------------------------------------------
17 | # airflow.secrets.local_filesystem
   - load_connections()
18 + load_connections_dict()
19 |
   |

AIR301 [*] `airflow.security.permissions.RESOURCE_DATASET` is removed in Airflow 3.0
  --> AIR301_provider_names_fix.py:21:1
   |
20 | # airflow.security.permissions
21 | RESOURCE_DATASET
   | ^^^^^^^^^^^^^^^^
22 |
23 | from airflow.providers.amazon.aws.datasets.s3 import (
   |
help: Use `RESOURCE_ASSET` from `airflow.security.permissions` instead.
   |
8  | from airflow.secrets.local_filesystem import load_connections
   - from airflow.security.permissions import RESOURCE_DATASET
9  + from airflow.security.permissions import RESOURCE_DATASET, RESOURCE_ASSET
10 |
--------------------------------------------------------------------------------
20 | # airflow.security.permissions
   - RESOURCE_DATASET
21 + RESOURCE_ASSET
22 |
   |

AIR301 [*] `airflow.providers.amazon.aws.datasets.s3.create_dataset` is removed in Airflow 3.0
  --> AIR301_provider_names_fix.py:28:1
   |
26 | from airflow.providers.amazon.aws.datasets.s3 import create_dataset as s3_create_dataset
27 |
28 | s3_create_dataset()
   | ^^^^^^^^^^^^^^^^^
29 | s3_convert_dataset_to_openlineage()
   |
help: Use `create_asset` from `airflow.providers.amazon.aws.assets.s3` instead.
   |
26 | from airflow.providers.amazon.aws.datasets.s3 import create_dataset as s3_create_dataset
27 + from airflow.providers.amazon.aws.assets.s3 import create_asset
28 |
   - s3_create_dataset()
29 + create_asset()
30 | s3_convert_dataset_to_openlineage()
   |

AIR301 [*] `airflow.providers.amazon.aws.datasets.s3.convert_dataset_to_openlineage` is removed in Airflow 3.0
  --> AIR301_provider_names_fix.py:29:1
   |
28 | s3_create_dataset()
29 | s3_convert_dataset_to_openlineage()
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30 |
31 | from airflow.providers.common.io.dataset.file import (
   |
help: Use `convert_asset_to_openlineage` from `airflow.providers.amazon.aws.assets.s3` instead.
   |
26 | from airflow.providers.amazon.aws.datasets.s3 import create_dataset as s3_create_dataset
27 + from airflow.providers.amazon.aws.assets.s3 import convert_asset_to_openlineage
28 |
29 | s3_create_dataset()
   - s3_convert_dataset_to_openlineage()
30 + convert_asset_to_openlineage()
31 |
   |

AIR301 [*] `airflow.providers.google.datasets.bigquery.create_dataset` is removed in Airflow 3.0
  --> AIR301_provider_names_fix.py:45:1
   |
43 | )
44 |
45 | bigquery_create_dataset()
   | ^^^^^^^^^^^^^^^^^^^^^^^
46 |
47 | # airflow.providers.google.datasets.gcs
   |
help: Use `create_asset` from `airflow.providers.google.assets.bigquery` instead.
   |
43 | )
44 + from airflow.providers.google.assets.bigquery import create_asset
45 |
   - bigquery_create_dataset()
46 + create_asset()
47 |
   |

AIR301 [*] `airflow.providers.google.datasets.gcs.create_dataset` is removed in Airflow 3.0
  --> AIR301_provider_names_fix.py:53:1
   |
51 | from airflow.providers.google.datasets.gcs import create_dataset as gcs_create_dataset
52 |
53 | gcs_create_dataset()
   | ^^^^^^^^^^^^^^^^^^
54 | gcs_convert_dataset_to_openlineage()
   |
help: Use `create_asset` from `airflow.providers.google.assets.gcs` instead.
   |
51 | from airflow.providers.google.datasets.gcs import create_dataset as gcs_create_dataset
52 + from airflow.providers.google.assets.gcs import create_asset
53 |
   - gcs_create_dataset()
54 + create_asset()
55 | gcs_convert_dataset_to_openlineage()
   |

AIR301 [*] `airflow.providers.google.datasets.gcs.convert_dataset_to_openlineage` is removed in Airflow 3.0
  --> AIR301_provider_names_fix.py:54:1
   |
53 | gcs_create_dataset()
54 | gcs_convert_dataset_to_openlineage()
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
help: Use `convert_asset_to_openlineage` from `airflow.providers.google.assets.gcs` instead.
   |
51 | from airflow.providers.google.datasets.gcs import create_dataset as gcs_create_dataset
52 + from airflow.providers.google.assets.gcs import convert_asset_to_openlineage
53 |
54 | gcs_create_dataset()
   - gcs_convert_dataset_to_openlineage()
55 + convert_asset_to_openlineage()
   |
