Repository navigation
v0.5.34 - Lint for the Python version a repository declares (#969)
🌟 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-pythonortarget-versionsettings 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-uvaction accepts an optionalvenv-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
backgroundoption 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 passedbackground=Trueto the response helper will need to remove that argument.
What's Changed
- Configure the GitHub App deployment repository by @glenn-jocher in #963
- Fix CLA checks for private pull requests by @glenn-jocher in #964
- Support a custom environment directory in setup-uv by @glenn-jocher in #965
- Measure the whole package in coverage and test the code it hid by @glenn-jocher in #966
- Test the release, review and formatting paths that had no coverage, and fix three docstring formatter bugs by @glenn-jocher in #967
- Redeploy the GitHub App from ultralytics/automations by @glenn-jocher in #968
- Lint for the Python version a repository declares by @glenn-jocher in #969
Full Changelog: v0.5.33...v0.5.34