diff --git a/crates/ruff_linter/src/codes.rs b/crates/ruff_linter/src/codes.rs index 9f97d5472a..4e7d34862a 100644 --- a/crates/ruff_linter/src/codes.rs +++ b/crates/ruff_linter/src/codes.rs @@ -1106,11 +1106,11 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<(RuleGroup, Rule)> { // airflow (Airflow, "001") => (RuleGroup::Stable, rules::airflow::rules::AirflowVariableNameTaskIdMismatch), - (Airflow, "002") => (RuleGroup::Preview, rules::airflow::rules::AirflowDagNoScheduleArgument), - (Airflow, "301") => (RuleGroup::Preview, rules::airflow::rules::Airflow3Removal), - (Airflow, "302") => (RuleGroup::Preview, rules::airflow::rules::Airflow3MovedToProvider), - (Airflow, "311") => (RuleGroup::Preview, rules::airflow::rules::Airflow3SuggestedUpdate), - (Airflow, "312") => (RuleGroup::Preview, rules::airflow::rules::Airflow3SuggestedToMoveToProvider), + (Airflow, "002") => (RuleGroup::Stable, rules::airflow::rules::AirflowDagNoScheduleArgument), + (Airflow, "301") => (RuleGroup::Stable, rules::airflow::rules::Airflow3Removal), + (Airflow, "302") => (RuleGroup::Stable, rules::airflow::rules::Airflow3MovedToProvider), + (Airflow, "311") => (RuleGroup::Stable, rules::airflow::rules::Airflow3SuggestedUpdate), + (Airflow, "312") => (RuleGroup::Stable, rules::airflow::rules::Airflow3SuggestedToMoveToProvider), // perflint (Perflint, "101") => (RuleGroup::Stable, rules::perflint::rules::UnnecessaryListCast), diff --git a/crates/ruff_linter/src/rules/airflow/rules/moved_to_provider_in_3.rs b/crates/ruff_linter/src/rules/airflow/rules/moved_to_provider_in_3.rs index 88035562ca..6f5fa55f01 100644 --- a/crates/ruff_linter/src/rules/airflow/rules/moved_to_provider_in_3.rs +++ b/crates/ruff_linter/src/rules/airflow/rules/moved_to_provider_in_3.rs @@ -13,13 +13,13 @@ use ruff_text_size::TextRange; use crate::{FixAvailability, Violation}; /// ## What it does -/// Checks for uses of Airflow functions and values that have been moved to it providers. -/// (e.g., apache-airflow-providers-fab) +/// Checks for uses of Airflow functions and values that have been moved to its providers +/// (e.g., `apache-airflow-providers-fab`). /// /// ## Why is this bad? /// Airflow 3.0 moved various deprecated functions, members, and other /// values to its providers. The user needs to install the corresponding provider and replace -/// the original usage with the one in the provider +/// the original usage with the one in the provider. /// /// ## Example /// ```python 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 a3d3e3bc95..52cbf4c51e 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 @@ -23,7 +23,7 @@ use ruff_text_size::TextRange; /// ## Why is this bad? /// Airflow 3.0 removed various deprecated functions, members, and other /// values. Some have more modern replacements. Others are considered too niche -/// and not worth to be maintained in Airflow. +/// and not worth continued maintenance in Airflow. /// /// ## Example /// ```python diff --git a/crates/ruff_linter/src/rules/airflow/rules/suggested_to_update_3_0.rs b/crates/ruff_linter/src/rules/airflow/rules/suggested_to_update_3_0.rs index a7c83abbca..f31dc42971 100644 --- a/crates/ruff_linter/src/rules/airflow/rules/suggested_to_update_3_0.rs +++ b/crates/ruff_linter/src/rules/airflow/rules/suggested_to_update_3_0.rs @@ -17,9 +17,9 @@ use ruff_text_size::TextRange; /// ## Why is this bad? /// Airflow 3.0 removed various deprecated functions, members, and other /// values. Some have more modern replacements. Others are considered too niche -/// and not worth to be maintained in Airflow. +/// and not worth continued maintenance in Airflow. /// Even though these symbols still work fine on Airflow 3.0, they are expected to be removed in a future version. -/// The user is suggested to replace the original usage with the new ones. +/// Where available, users should replace the removed functionality with the new alternatives. /// /// ## Example /// ```python