-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: Improve local dev experience with file-aware hooks and auto parallelization #5956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
franciscojavierarceo
merged 8 commits into
master
from
feat/improve-local-dev-experience
Feb 13, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
82ae109
feat: Improve local dev experience with file-aware hooks and auto par…
franciscojavierarceo d2c57c1
fix: Address review feedback on pre-commit hooks
franciscojavierarceo 6cf622e
fix: Restore --dist loadgroup to preserve xdist_group markers
franciscojavierarceo c29bf56
Merge branch 'master' into feat/improve-local-dev-experience
franciscojavierarceo a7b03b5
Update Makefile
franciscojavierarceo cd398ca
Update Makefile
franciscojavierarceo 7f10bcc
fix: Use --dist loadgroup in test-python-integration-parallel
franciscojavierarceo 13dc090
chore: Remove unused format-python-files and lint-python-files targets
franciscojavierarceo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
devin-ai-integration[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡
&&in format-files pre-commit hook skipsruff formatwhen unfixable lint violations existThe
format-filespre-commit hook entry uses&&to chainruff check --fixandruff format. Whenruff check --fixencounters lint violations that cannot be auto-fixed, it returns exit code 1, and the&&operator preventsruff formatfrom executing. This means files with unfixable lint issues will never be auto-formatted.Root Cause and Impact
The entry at
.pre-commit-config.yaml:13is:ruff check --fixreturns exit code 1 when violations remain after applying all available auto-fixes (e.g., rules that have no auto-fix available). The&&operator short-circuits, soruff formatis never invoked.Notably, the corresponding
format-python-filesMakefile target atMakefile:64-65correctly uses;(semicolons) to separate the commands, ensuringruff formatalways runs regardless ofruff check --fix's exit code:Impact: When a developer commits Python files that have unfixable lint violations (which is common — many ruff rules are not auto-fixable), the formatting step is silently skipped. The developer's files won't be auto-formatted, defeating the purpose of the format hook.
Was this helpful? React with 👍 or 👎 to provide feedback.