ruff/crates/ruff_linter/resources/test/fixtures/airflow
Wei Lee 236633cd42
[`airflow`] Update `AIR301` and `AIR311` with the latest Airflow implementations (#17985)
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

<!-- What's the purpose of the change? What does it do, and why? -->



* Remove the following rules
    * name
* `airflow.auth.managers.base_auth_manager.is_authorized_dataset` →
`airflow.api_fastapi.auth.managers.base_auth_manager.is_authorized_asset`
*
`airflow.providers.fab.auth_manager.fab_auth_manager.is_authorized_dataset`
→
`airflow.providers.fab.auth_manager.fab_auth_manager.is_authorized_asset`
* Update the following rules
    * name
* `airflow.models.baseoperatorlink.BaseOperatorLink` →
`airflow.sdk.BaseOperatorLink`
* `airflow.api_connexion.security.requires_access` → "Use
`airflow.api_fastapi.core_api.security.requires_access_*` instead`"
* `airflow.api_connexion.security.requires_access_dataset`→
`airflow.api_fastapi.core_api.security.requires_access_asset`
* `airflow.notifications.basenotifier.BaseNotifier` →
`airflow.sdk.bases.notifier.BaseNotifier`
        * `airflow.www.auth.has_access`  → None
        * `airflow.www.auth.has_access_dataset` → None
        * `airflow.www.utils.get_sensitive_variables_fields`→ None
        * `airflow.www.utils.should_hide_value_for_key`→ None
    * class attribute
        * `airflow..sensors.weekday.DayOfWeekSensor`
            * `use_task_execution_day` removed
*
`airflow.providers.amazon.aws.auth_manager.aws_auth_manager.AwsAuthManager`
            * `is_authorized_dataset`
* Add the following rules
    * class attribute
* `airflow.auth.managers.base_auth_manager.BaseAuthManager` |
`airflow.providers.fab.auth_manager.fab_auth_manager.FabAuthManager`
     * name
* `airflow.auth.managers.base_auth_manager.BaseAuthManager` →
`airflow.api_fastapi.auth.managers.base_auth_manager.BaseAuthManager` *
`is_authorized_dataset` → `is_authorized_asset`
* refactor
    * simplify unnecessary match with if else
    * rename Replacement::Name as Replacement::AttrName

## Test Plan

<!-- How was it tested? -->
The test fixtures have been revised and updated.
2025-05-19 13:28:04 -04:00
..
AIR001.py Check `AIR001` from builtin or providers `operators` module (#14631) 2024-12-04 13:30:47 +05:30
AIR002.py [`airflow`] Move `AIR301` to `AIR002` (#16978) 2025-04-02 20:37:35 +05:30
AIR301_airflow_plugin.py [`airflow`] Move `AIR302` to `AIR301` and `AIR303` to `AIR302` (#17151) 2025-04-02 23:01:31 +05:30
AIR301_args.py [`airflow`] Update `AIR301` and `AIR311` with the latest Airflow implementations (#17985) 2025-05-19 13:28:04 -04:00
AIR301_class_attribute.py [`airflow`] Update `AIR301` and `AIR311` with the latest Airflow implementations (#17985) 2025-05-19 13:28:04 -04:00
AIR301_context.py [`airflow`] Move `AIR302` to `AIR301` and `AIR303` to `AIR302` (#17151) 2025-04-02 23:01:31 +05:30
AIR301_names.py [`airflow`] Update `AIR301` and `AIR311` with the latest Airflow implementations (#17985) 2025-05-19 13:28:04 -04:00
AIR301_names_fix.py [`airflow`] Update `AIR301` and `AIR311` with the latest Airflow implementations (#17985) 2025-05-19 13:28:04 -04:00
AIR301_names_try.py [`airflow`] Apply try-catch guard to all AIR3 rules (`AIR3`) (#17887) 2025-05-12 17:13:41 -04:00
AIR301_provider_names_fix.py [`airflow`] Update `AIR301` and `AIR311` with the latest Airflow implementations (#17985) 2025-05-19 13:28:04 -04:00
AIR302_amazon.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_celery.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_common_sql.py [`airflow`] Fix `SQLTableCheckOperator` typo (`AIR302`) (#17946) 2025-05-08 14:34:55 +02:00
AIR302_daskexecutor.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_docker.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_druid.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_fab.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_hdfs.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_hive.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_http.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_jdbc.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_kubernetes.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_mysql.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_oracle.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_papermill.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_pig.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_postgres.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_presto.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_samba.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_slack.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_smtp.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_sqlite.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR302_standard.py [`airflow`] Move rules from `AIR312` to `AIR302` (#17940) 2025-05-19 13:20:21 -04:00
AIR302_try.py [`airflow`] Apply try-catch guard to all AIR3 rules (`AIR3`) (#17887) 2025-05-12 17:13:41 -04:00
AIR302_zendesk.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -04:00
AIR311_args.py [`airflow`] Extract `AIR311` from `AIR301` rules (`AIR301`, `AIR311`) (#17310) 2025-04-16 11:06:57 -04:00
AIR311_names.py [`airflow`] extend `AIR311` rules (#17913) 2025-05-09 13:08:37 -04:00
AIR311_try.py [`airflow`] Apply try-catch guard to all AIR3 rules (`AIR3`) (#17887) 2025-05-12 17:13:41 -04:00
AIR312.py [`airflow`] Move rules from `AIR312` to `AIR302` (#17940) 2025-05-19 13:20:21 -04:00
AIR312_try.py [`airflow`] Apply try-catch guard to all AIR3 rules (`AIR3`) (#17887) 2025-05-12 17:13:41 -04:00