Skip to content

v0.5.34 - Lint for the Python version a repository declares (#969)

Choose a tag to compare

@github-actions github-actions released this 29 Nov 23:53
· 4 commits to main since this release
dce29ee

🌟 Summary

Release v0.5.34 makes Python linting respect each repository’s declared version, improves formatter reliability and test coverage, and updates several GitHub Actions workflows and utilities.

📊 Key Changes

  • 🐍 Lint for the repository’s Python version — PR #969: Ruff now uses a repository’s requires-python or target-version settings when declared, instead of always assuming Python 3.8. The composite action and its fork-PR mirror follow the same rule; Markdown code snippets still target Python 3.8.
  • 🧪 Broader, more representative tests — PRs #966–#967: Coverage now includes the whole package, and new tests exercise previously untested release, review, formatting, and GitHub helper paths. The tests also exposed and fixed three docstring formatter issues.
  • 🔐 More reliable CLA checks for private PRs — PR #964: Smaller PRs use GitHub’s pull-request commits endpoint, avoiding a comparison endpoint that can require extra access. Larger PRs retain paginated comparisons to handle long histories safely.
  • 🏗️ Updated deployment destination — PR #968: The publishing workflow now dispatches the Cloud Run deployment from ultralytics/automations.
  • 🧰 Custom virtual-environment locations — PR #965: The setup-uv action accepts an optional venv-path; existing users keep the runner-temp default.
  • 🤖 Other workflow and API updates: The release also adds tests for more GitHub automation paths and removes the background option from the response helper, which now sends OpenAI requests without background storage.

🎯 Purpose & Impact

  • ✅ Repositories using the formatter should see fewer incorrect lint errors when their Python version is newer than 3.8, while repositories without a declared version retain the existing Python 3.8 default.
  • 🔍 Coverage reporting now reflects the full package rather than a selected subset, making it more useful for spotting untested code.
  • 🔒 CLA checks can work with narrower permissions on private PRs, and still validate complete commit histories for larger PRs.
  • ⚙️ Teams can place virtual environments where their runners’ security or workflow setup requires, without changing existing configurations.
  • ⚠️ Callers that passed background=True to the response helper will need to remove that argument.

What's Changed

Full Changelog: v0.5.33...v0.5.34