Skip to content

Commit

Permalink
style(AIR302): rename removed_airflow_plugin_extension as check_airfl…
Browse files Browse the repository at this point in the history
…ow_plugin_extension (#15233)

## Summary

during the previous refactor, this renaming was missed

## Test Plan

no functionality changed
  • Loading branch information
Lee-W authored Jan 3, 2025
1 parent a3d873e commit 835b453
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ruff_linter/src/rules/airflow/rules/removal_in_3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 835b453

Please sign in to comment.