From f8e3cd0984c619ff18a0343d9d26c6a60ea42988 Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Fri, 3 Jan 2025 13:15:21 +0900 Subject: [PATCH] style(AIR302): rename removed_airflow_plugin_extension as check_airflow_plugin_extension during the previous refactor, this reanming was missed --- crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs b/crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs index 3c35a64d869980..f5639de80926f1 100644 --- a/crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs +++ b/crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs @@ -96,7 +96,7 @@ pub(crate) fn removed_in_3(checker: &mut Checker, expr: &Expr) { check_name(checker, expr, *range); if matches!(ctx, ExprContext::Store) { if let ScopeKind::Class(class_def) = checker.semantic().current_scope().kind { - removed_airflow_plugin_extension(checker, expr, id, class_def); + check_airflow_plugin_extension(checker, expr, id, class_def); } } } @@ -699,7 +699,7 @@ fn check_name(checker: &mut Checker, expr: &Expr, range: TextRange) { /// class CustomizePlugin(AirflowPlugin) /// executors = "some.third.party.executor" /// ``` -fn removed_airflow_plugin_extension( +fn check_airflow_plugin_extension( checker: &mut Checker, expr: &Expr, name: &str,