Repository navigation
fix(template): add ruff to default pre-commit hooks for Python repos - #564
Open
Moon-Knight13 wants to merge 1 commit into
Open
Moon-Knight13 wants to merge 1 commit into
Moon-Knight13 wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Moon-Knight13
force-pushed
the
fix/add-ruff-pre-commit-default
branch
from
December 5, 2026 21:04
2173807 to
c03b1c5
Compare
Owner
Author
|
🤖 PR Review Bot: Review findings below. CI status: ✅ all pass. Manual merge required. FindingsNo significant findings. Clean template update adding ruff hook configuration. Range identifier check: ✅ Clean |
This branch has not been deployed
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
ruff-pre-commit(v0.8.2) to.pre-commit-config.yamlwithruff --fixandruff-formathooksContext
Fleet repos derived from this template run ruff in CI but not in pre-commit. This causes a recurring loop: commit passes local pre-commit → CI fails on ruff → developer has to amend. Adding ruff to default pre-commit hooks catches lint and format issues before push.
Test plan
pre-commit run --all-files— ruff and ruff-format hooks pass🤖 Generated with Claude Code