Hi all, During the development of Airflow 3.0, some content in the newsfragment was outdated, incorrect, or missing. Thus, some Ruff rules were not implemented correctly. Last week, I reviewed the rules on the Ruff side and submitted several PRs to address these issues. The rules listed in this comment <https://github.com/apache/airflow/issues/41641#issuecomment-2866770585> [1] should reflect what we will have once all the pending fixing PRs [2][3][4][5] are merged. If there's a comment that follows the line in the code block, it indicates that there is a Ruff rules lint associated with it. Not all of these issues can be fixed. More fixes will be implemented next week. Some TODO rules are also mentioned in the description of issue 41641 <https://github.com/apache/airflow/issues/41641> [6]. As for what the error code AIR… is, they are detailed in Airflow (AIR) <https://docs.astral.sh/ruff/rules/#airflow-air> [7].
It would be greatly appreciated if more people could check this list, especially if you know of any breaking changes made. Thanks a lot! Best, Wei [1] https://github.com/apache/airflow/issues/41641#issuecomment-2866770585 [2] https://github.com/astral-sh/ruff/pull/17941 [3] https://github.com/astral-sh/ruff/pull/17985 [4] https://github.com/astral-sh/ruff/pull/17942 [5] https://github.com/astral-sh/ruff/pull/17940 [6] https://github.com/apache/airflow/issues/41641 [7] https://docs.astral.sh/ruff/rules/#airflow-air