mirror of https://github.com/astral-sh/ruff
<!--
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.
|
||
|---|---|---|
| .. | ||
| AIR001.py | ||
| AIR002.py | ||
| AIR301_airflow_plugin.py | ||
| AIR301_args.py | ||
| AIR301_class_attribute.py | ||
| AIR301_context.py | ||
| AIR301_names.py | ||
| AIR301_names_fix.py | ||
| AIR301_names_try.py | ||
| AIR301_provider_names_fix.py | ||
| AIR302_amazon.py | ||
| AIR302_celery.py | ||
| AIR302_common_sql.py | ||
| AIR302_daskexecutor.py | ||
| AIR302_docker.py | ||
| AIR302_druid.py | ||
| AIR302_fab.py | ||
| AIR302_hdfs.py | ||
| AIR302_hive.py | ||
| AIR302_http.py | ||
| AIR302_jdbc.py | ||
| AIR302_kubernetes.py | ||
| AIR302_mysql.py | ||
| AIR302_oracle.py | ||
| AIR302_papermill.py | ||
| AIR302_pig.py | ||
| AIR302_postgres.py | ||
| AIR302_presto.py | ||
| AIR302_samba.py | ||
| AIR302_slack.py | ||
| AIR302_smtp.py | ||
| AIR302_sqlite.py | ||
| AIR302_standard.py | ||
| AIR302_try.py | ||
| AIR302_zendesk.py | ||
| AIR311_args.py | ||
| AIR311_names.py | ||
| AIR311_try.py | ||
| AIR312.py | ||
| AIR312_try.py | ||