Add concurrency control and ruff configuration improvements#3
Merged
Conversation
….lock Add concurrency group to ruff-autofix workflow so that when multiple commits are pushed (e.g. PR merge), only the latest run proceeds and stale runs are cancelled. This prevents push failures when the workflow runs on a commit that is no longer the branch HEAD. Also add uv.lock to ruff's exclude list in pyproject.toml since uv generates lock files that trigger ruff violations. https://claude.ai/code/session_01YFmaXoosHkGyN3uEF3k54F
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves the CI/CD workflow and code quality tooling configuration by adding concurrency controls to prevent duplicate workflow runs and configuring Ruff to exclude lock files.
Key Changes
ruff-autofixworkflow to cancel in-progress runs when a new push occurs on the same branch, reducing unnecessary CI resource usagepyproject.tomlto prevent Ruff from linting theuv.lockfile, which is a generated dependency lock file that shouldn't be analyzedImplementation Details
github.refto ensure each branch has its own concurrency contextcancel-in-progress: truesetting ensures that older workflow runs are cancelled when a newer commit is pushed to the same branchuv.lockexclusion prevents unnecessary linting of auto-generated lock file contenthttps://claude.ai/code/session_01YFmaXoosHkGyN3uEF3k54F