From 67f65cff4dbd0c4350f423b2152cb647f6da54d5 Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Fri, 24 Jan 2025 18:18:54 +0800 Subject: [PATCH] refactor(AIR302): rename check_function_parameters as check_parameters_in_function_def --- 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 2b3b5a7a86..a6dcc6cd5b 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 @@ -122,7 +122,7 @@ pub(crate) fn removed_function_def_in_3(checker: &mut Checker, function_def: &St return; } - check_function_parameters(checker, function_def); + check_parameters_in_function_def(checker, function_def); } const REMOVED_CONTEXT_KEYS: [&str; 12] = [ @@ -153,7 +153,7 @@ const REMOVED_CONTEXT_KEYS: [&str; 12] = [ /// # 'execution_date' is removed in Airflow 3.0 /// pass /// ``` -fn check_function_parameters(checker: &mut Checker, function_def: &StmtFunctionDef) { +fn check_parameters_in_function_def(checker: &mut Checker, function_def: &StmtFunctionDef) { if !is_airflow_task(function_def, checker.semantic()) && !is_execute_method_inherits_from_airflow_operator(function_def, checker.semantic()) {