Skip to content

Run the ruff hooks from the lockfile - #55

Merged
NathanCummings merged 1 commit into
mainfrom
chore/prek-ruff-from-lock
Sep 17, 2026
Merged

NathanCummings merged 1 commit into
mainfrom
chore/prek-ruff-from-lock

Conversation

@NathanCummings

Copy link
Copy Markdown
Member

.pre-commit-config.yaml pinned astral-sh/ruff-pre-commit at v0.9.2. uv.lock and CI moved to ruff 0.16 in #15. Since then prek run has linted with a ruff that predates the expanded default set: clean locally, red in CI.

The pyright hook already ran uv run pyright against the lock. Both ruff hooks now do the same, so the hook version and the CI version are the same file. prek run --all-files passes on main.

🤖 Generated with Claude Code

https://claude.ai/code/session_013E6ygEUq3gzUrTzPJxcwtH

The remote ruff hook was pinned at 0.9.2 while uv.lock and CI were on 0.16, so prek passed locally on rules CI then failed. Both ruff hooks now run through uv like the pyright hook already did, so the versions cannot drift.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013E6ygEUq3gzUrTzPJxcwtH
@NathanCummings
NathanCummings enabled auto-merge (squash) September 17, 2026 12:42
@NathanCummings
NathanCummings merged commit 6412334 into main Sep 17, 2026
9 checks passed
@NathanCummings
NathanCummings deleted the chore/prek-ruff-from-lock branch September 17, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant