[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:
Wei Lee 2024-12-31 17:28:11 +09:00 committed by GitHub
parent ecf00cdf6a
commit 68d2466832
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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
|