ruff/crates/ruff_linter/resources/test/fixtures/airflow
Wei Lee 2e94d37275
[`airflow`] Get rid of `Replacement::Name` and replace them with `Replacement::AutoImport` for enabling auto fixing (`AIR301`, `AIR311`) (#17941)
<!--
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? -->

Similiar to https://github.com/astral-sh/ruff/pull/17941.

`Replacement::Name` was designed for linting only. Now, we also want to
fix the user code. It would be easier to replace it with a better
AutoImport struct whenever possible.

On the other hand, `AIR301` and `AIR311` contain attribute changes that
can still use a struct like `Replacement::Name`. To reduce the
confusion, I also updated it as `Replacement::AttrName`

Some of the original `Replacement::Name` has been replaced as
`Replacement::Message` as they're not directly mapping and the message
has now been moved to `help`


## Test Plan

<!-- How was it tested? -->

The test fixtures have been updated
2025-05-14 11:10:15 -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`] Extract `AIR311` from `AIR301` rules (`AIR301`, `AIR311`) (#17310) 2025-04-16 11:06:57 -04:00
AIR301_class_attribute.py [`airflow`] Move `AIR302` to `AIR301` and `AIR303` to `AIR302` (#17151) 2025-04-02 23:01:31 +05:30
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`] Get rid of `Replacement::Name` and replace them with `Replacement::AutoImport` for enabling auto fixing (`AIR301`, `AIR311`) (#17941) 2025-05-14 11:10:15 -04:00
AIR301_names_fix.py [`airflow`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR301`) (#17355) 2025-04-23 12:43:41 -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`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR301`) (#17355) 2025-04-23 12:43:41 -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`] Apply auto fixes to cases where the names have changed in Airflow 3 (`AIR302`) (#17553) 2025-04-28 16:35:17 -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`] Extract `AIR312` from `AIR302` rules (`AIR302`, `AIR312`) (#17152) 2025-04-09 10:43:07 -04:00
AIR312_try.py [`airflow`] Apply try-catch guard to all AIR3 rules (`AIR3`) (#17887) 2025-05-12 17:13:41 -04:00