mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
[airflow
] Remove additional spaces (AIR302
) (#15211)
<!-- 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? --> During https://github.com/astral-sh/ruff/pull/15209, additional spaces was accidentally added to the rule `airflow.operators.latest_only.LatestOnlyOperator`. This PR fixes this issue ## Test Plan <!-- How was it tested? --> A test fixture has been included for the rule.
This commit is contained in:
parent
ecf00cdf6a
commit
68d2466832
2 changed files with 2 additions and 2 deletions
|
@ -513,7 +513,7 @@ fn check_name(checker: &mut Checker, expr: &Expr, range: TextRange) {
|
|||
Replacement::Name("airflow.operators.python.ShortCircuitOperator")
|
||||
}
|
||||
["airflow", "operators", "latest_only_operator", "LatestOnlyOperator"] => {
|
||||
Replacement::Name(" airflow.operators.latest_only.LatestOnlyOperator")
|
||||
Replacement::Name("airflow.operators.latest_only.LatestOnlyOperator")
|
||||
}
|
||||
|
||||
// airflow.sensors
|
||||
|
|
|
@ -555,7 +555,7 @@ AIR302_names.py:183:1: AIR302 `airflow.operators.latest_only_operator.LatestOnly
|
|||
184 |
|
||||
185 | # airflow.operators.python_operator
|
||||
|
|
||||
= help: Use ` airflow.operators.latest_only.LatestOnlyOperator` instead
|
||||
= help: Use `airflow.operators.latest_only.LatestOnlyOperator` instead
|
||||
|
||||
AIR302_names.py:186:1: AIR302 `airflow.operators.python_operator.BranchPythonOperator` is removed in Airflow 3.0
|
||||
|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue