Skip to content

Apply ruff Python 3.11 fixes to dev tooling, scripts and test suites - #74156

Open
shahar1 wants to merge 1 commit into
drop-py310/5-ruff-providersfrom
drop-py310/6-ruff-dev-scripts
Open

shahar1 wants to merge 1 commit into
drop-py310/5-ruff-providersfrom
drop-py310/6-ruff-dev-scripts

Conversation

@shahar1

@shahar1 shahar1 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

As titled - this PR applies ruff Python 3.11 fixes to dev tooling, scripts and test suites.

related: #74148

AI Summary Output of `ruff check --fix` with the py311 target for `dev/`, `scripts/`, `airflow-e2e-tests`, `task-sdk-integration-tests` and `kubernetes-tests`: `timezone.utc` → `datetime.UTC` (UP017). Mechanical, no behaviour change.

Stack

Layer 6 of 9 of the Python 3.10 drop (supersedes #74144, which carried the whole change in one PR). Each layer is meant to be green on its own: the script metadata bump comes first because prek picks the hook interpreter from it, and the ruff fixes land before the requires-python bump because ruff infers its target per distribution from the nearest pyproject.toml.

  1. Drop Python 3.10 from CI, Breeze and the container images
  2. Bump inline script metadata to Python 3.11
  3. Remove Python 3.10 compatibility shims
  4. Apply ruff Python 3.11 fixes to core, Task SDK, shared and airflowctl
  5. Apply ruff Python 3.11 fixes to providers
  6. Apply ruff Python 3.11 fixes to dev tooling, scripts and test suites
  7. Require Python 3.11 in all distributions
  8. Update provider READMEs for the Python 3.11 baseline
  9. Update docs for the Python 3.11 baseline

Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Fable 5.1)

Generated-by: Claude Code (Fable 5.1) following the guidelines

Output of ruff --fix with the py311 target for dev/, scripts/ and the
e2e, integration and kubernetes test suites: timezone.utc becomes
datetime.UTC. No behaviour change.
@shahar1
shahar1 force-pushed the drop-py310/6-ruff-dev-scripts branch from 9b77dc8 to 133410d Compare October 3, 2026 20:05

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant