Migrating to Ruff 0.11.9
Version 0.11.9 introduces 1 breaking change. This guide details how to update your code.
Released: 5/9/2025
1
Breaking Changes
4
Migration Steps
2
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
airflow.utils.dag_parsing_context.get_parsing_contextruff.analyze.graphBreaking Changes
●Issue #1
Removed `airflow.utils.dag_parsing_context.get_parsing_context` (AIR301); code importing this function will fail. Replace usage with alternative context handling provided by Airflow or remove the call.
Migration Steps
- 1If your code calls `airflow.utils.dag_parsing_context.get_parsing_context`, replace it with the new context API or remove the call.
- 2Review any version‑specific syntax handling, as Ruff now defaults to the latest supported Python version; update your code or configuration if you rely on older version error messages.
- 3Upgrade Rust to the version described in the new upgrade guide if you build Ruff from source.
- 4If you use `ruff analyze graph`, you can now pass a virtual environment via the appropriate CLI flag (refer to the documentation).
Release Summary
Ruff 0.11.9 introduces several preview features—including defaulting to the latest Python version and a new `in‑empty‑collection` rule—adds a virtual‑env option for `ruff analyze graph`, and fixes a range of bugs and documentation updates.
Need More Details?
View the full release notes and all changes for Ruff 0.11.9.
View Full Changelog