Skip to content

Upgrading ruff 0.10 to 0.11

Breaking0.10.0 → 0.11.13Breaking5New48Changed34Fixed50Other28

BreakingUpgrade verdict

3 breaking changes.

  • Removes `airflow.utils.dag_parsing_context.get_parsing_context` from the `AIR301` checks.
  • Ruff now looks at the Python version you declare in your project's pyproject.toml even when that file has no Ruff settings, instead of silently falling back to the default Python version.
  • When your Ruff config file does not state a Python version, Ruff now reads the version from a pyproject.toml sitting next to it, even if that file has no Ruff section.
3 items need code or config changes
Breaking3
Removes airflow.utils.dag_parsing_context.get_parsing_context from the AIR301 checks.
airflow.utils.dag_parsing_context.get_parsing_contextAIR301
Changes how the Python version is inferred when target-version is not specified, now respecting requires-python from nearby pyproject.toml files.
target-versionrequires-pythonproject.requires-python[tool.ruff]
If Ruff finds a ruff.toml without target-version, it now checks a pyproject.toml in the same directory and respects its requires-python even without a [tool.ruff] section.
ruff.tomltarget-versionpyproject.tomlrequires-python[tool.ruff]