Skip to content

ci: pin ruff to pyproject version in lint workflow - #3121

Merged
daryllimyt merged 1 commit into
mainfrom
daryl/ci-pin-ruff-version
Jul 24, 2026
Merged

ci: pin ruff to pyproject version in lint workflow#3121
daryllimyt merged 1 commit into
mainfrom
daryl/ci-pin-ruff-version

Conversation

@daryllimyt

@daryllimyt daryllimyt commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

What

Pin the ruff version in lint-python.yml to the repo's pyproject.toml pin (ruff==0.15.0) via ruff-action's version-file input, replacing version: latest.

Why

ruff 0.16.0 was released today and version: latest picked it up immediately, turning the ruff check red on every open PR with new violations (I001, TRY201, UP035, RUF022, TRY004, BLE001) in pre-existing packages/tracecat-registry/ code that no PR touched. Verified locally:

  • uv run ruff check tracecat/ tests/ packages/ alembic/ (0.15.0, the pyproject pin) — passes
  • uvx ruff@0.16.0 check packages/tracecat-registry/ — fails with the same errors as CI

version-file: "pyproject.toml" keeps CI in lockstep with the dev/pre-commit pin, so future ruff upgrades happen deliberately via the pyproject.toml bump (with any new violations fixed in the same PR) instead of on ruff's release schedule.

Notes


Summary by cubic

Pin ruff in lint-python.yml to the pyproject.toml version using ruff-action’s version-file, replacing version: latest, to prevent CI from breaking on new ruff releases. This keeps CI aligned with the dev/pre-commit pin and upgrades happen via the pyproject.toml bump.

Written for commit 5ebd77d. Summary will update on new commits.

Review in cubic

@zeropath-ai

zeropath-ai Bot commented Jul 23, 2026

Copy link
Copy Markdown

No security or compliance issues detected. Reviewed everything up to 5ebd77d.

Security Overview
Detected Code Changes
Change Type Relevant files
Configuration changes ► .github/workflows/lint-python.yml
    Update ruff-action version handling from "version" to "version-file" for lint and format steps

@daryllimyt daryllimyt added the cicd Changes to CICD workflows and configurations label Jul 23, 2026
@daryllimyt
daryllimyt merged commit cad7f1a into main Jul 24, 2026
10 checks passed
@daryllimyt
daryllimyt deleted the daryl/ci-pin-ruff-version branch July 24, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cicd Changes to CICD workflows and configurations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant