Re: [I] Update Ruff AIR rules based on the latest Airflow 3 implementation [airflow]

2025-05-17 Thread via GitHub


Lee-W commented on issue #49598:
URL: https://github.com/apache/airflow/issues/49598#issuecomment-2888200087

   close as all related ones merged


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Update Ruff AIR rules based on the latest Airflow 3 implementation [airflow]

2025-05-17 Thread via GitHub


Lee-W closed issue #49598: Update Ruff AIR rules based on the latest Airflow 3 
implementation
URL: https://github.com/apache/airflow/issues/49598


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] Update Ruff AIR rules based on the latest Airflow 3 implementation [airflow]

2025-05-08 Thread via GitHub


Lee-W commented on issue #49598:
URL: https://github.com/apache/airflow/issues/49598#issuecomment-2862747980

   The latest ruff rules (after the latest PR merged) (WIP)
   
   
  AIR302 
   
   # apache-airflow-providers-amazon
   from airflow.hooks.S3_hook import S3Hook # → from 
airflow.providers.amazon.aws.hooks.s3 import S3Hook
   from airflow.hooks.S3_hook import provide_bucket_name # → from 
airflow.providers.amazon.aws.hooks.s3 import provide_bucket_name
   
   from airflow.operators.gcs_to_s3 import GCSToS3Operator # → from 
airflow.providers.amazon.aws.transfers.gcs_to_s3 import GCSToS3Operator
   
   from airflow.operators.google_api_to_s3_transfer import 
GoogleApiToS3Operator # → from 
airflow.providers.amazon.aws.transfers.google_api_to_s3 import 
GoogleApiToS3Operator
   from airflow.operators.google_api_to_s3_transfer import 
GoogleApiToS3Transfer # → from 
airflow.providers.amazon.aws.transfers.google_api_to_s3 import 
GoogleApiToS3Operator
  
   from airflow.operators.redshift_to_s3_operator import RedshiftToS3Operator  
# → from airflow.providers.amazon.aws.transfers.redshift_to_s3 import 
RedshiftToS3Operator
   from airflow.operators.redshift_to_s3_operator import RedshiftToS3Transfer # 
→ from airflow.providers.amazon.aws.transfers.redshift_to_s3 import 
RedshiftToS3Operator
  
   from airflow.operators.s3_file_transform_operator import 
S3FileTransformOperator # → from airflow.providers.amazon.aws.operators.s3 
import S3FileTransformOperator
   
   from airflow.operators.s3_to_redshift_operator import S3ToRedshiftOperator # 
→ from airflow.providers.amazon.aws.transfers.s3_to_redshift import 
S3ToRedshiftOperator
   from airflow.operators.s3_to_redshift_operator import S3ToRedshiftTransfer # 
→ from airflow.providers.amazon.aws.transfers.s3_to_redshift import 
S3ToRedshiftOperator
   
   from airflow.sensors.s3_key_sensor import S3KeySensor # → from 
airflow.providers.amazon.aws.sensors.s3 import S3KeySensor
   
   
   # apache-airflow-providers-celery
   from airflow.config_templates.default_celery import DEFAULT_CELERY_CONFIG # 
→ from airflow.providers.celery.executors.default_celery import 
DEFAULT_CELERY_CONFIG
   
   from airflow.executors.celery_executor import app # → from 
airflow.providers.celery.executors.celery_executor_utils import app
   from airflow.executors.celery_executor import CeleryExecutor # → from 
airflow.providers.celery.executors.celery_executor import CeleryExecutor
   
   from airflow.executors.celery_kubernetes_executor import 
CeleryKubernetesExecutor # → from 
airflow.providers.celery.executors.celery_kubernetes_executor import 
CeleryKubernetesExecutor
   
   
   # apache-airflow-providers-common-sql
   from airflow.hooks.dbapi import ConnectorProtocol # → from 
airflow.providers.common.sql.hooks.sql import ConnectorProtocol
   from airflow.hooks.dbapi import DbApiHook # → from 
airflow.providers.common.sql.hooks.sql import DbApiHook
   
   from airflow.hooks.dbapi_hook import DbApiHook # → from 
airflow.providers.common.sql.hooks.sql import DbApiHook
   
   from airflow.operators.check_operator import SQLCheckOperator # → from 
airflow.providers.common.sql.operators.sql import SQLCheckOperator
   from airflow.operators.sql import SQLCheckOperator # → from 
airflow.providers.common.sql.operators.sql import SQLCheckOperator
   from airflow.operators.check_operator import CheckOperator # → from 
airflow.providers.common.sql.operators.sql import SQLCheckOperator
   from airflow.operators.druid_check_operator import CheckOperator # → from 
airflow.providers.common.sql.operators.sql import SQLCheckOperator
   from airflow.operators.presto_check_operator import CheckOperator # → from 
airflow.providers.common.sql.operators.sql import SQLCheckOperator
   from airflow.operators.druid_check_operator import DruidCheckOperator # → 
from airflow.providers.common.sql.operators.sql import SQLCheckOperator
   from airflow.operators.presto_check_operator import PrestoCheckOperator # → 
from airflow.providers.common.sql.operators.sql import SQLCheckOperator
   
   from airflow.operators.check_operator import IntervalCheckOperator # → from 
airflow.providers.common.sql.operators.sql import SQLIntervalCheckOperator
   from airflow.operators.check_operator import SQLIntervalCheckOperator # → 
from airflow.providers.common.sql.operators.sql import SQLIntervalCheckOperator
   from airflow.operators.presto_check_operator import IntervalCheckOperator # 
→ from airflow.providers.common.sql.operators.sql import 
SQLIntervalCheckOperator
   from airflow.operators.presto_check_operator import 
PrestoIntervalCheckOperator # → from airflow.providers.common.sql.operators.sql 
import SQLIntervalCheckOperator
   from airflow.operators.sql import SQLIntervalCheckOperator # → from 
airflow.providers.common.sql.operators.sql import SQLIntervalCheckOperator
   
   from airflow.operators.check_operator import SQLThresholdCheckOperator #