ci: pin ruff to pyproject version in lint workflow - #3121
Merged
Conversation
|
✅ No security or compliance issues detected. Reviewed everything up to 5ebd77d. Security Overview
Detected Code Changes
|
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.
What
Pin the ruff version in
lint-python.ymlto the repo'spyproject.tomlpin (ruff==0.15.0) viaruff-action'sversion-fileinput, replacingversion: latest.Why
ruff 0.16.0 was released today and
version: latestpicked it up immediately, turning theruffcheck red on every open PR with new violations (I001,TRY201,UP035,RUF022,TRY004,BLE001) in pre-existingpackages/tracecat-registry/code that no PR touched. Verified locally:uv run ruff check tracecat/ tests/ packages/ alembic/(0.15.0, the pyproject pin) — passesuvx ruff@0.16.0 check packages/tracecat-registry/— fails with the same errors as CIversion-file: "pyproject.toml"keeps CI in lockstep with the dev/pre-commit pin, so future ruff upgrades happen deliberately via thepyproject.tomlbump (with any new violations fixed in the same PR) instead of on ruff's release schedule.Notes
ruffjob failing on files outside the diff).Summary by cubic
Pin
ruffinlint-python.ymlto thepyproject.tomlversion usingruff-action’sversion-file, replacingversion: latest, to prevent CI from breaking on newruffreleases. This keeps CI aligned with the dev/pre-commit pin and upgrades happen via thepyproject.tomlbump.Written for commit 5ebd77d. Summary will update on new commits.