-
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
Changes from 1 commit
82ae109
d2c57c1
6cf622e
c29bf56
a7b03b5
cd398ca
7f10bcc
13dc090
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…allelization - Make precommit hooks file-aware: format and lint only changed Python files - Add conditional template hook that only runs when template files change - Update test-python-integration-local to use -n auto and --dist loadscope - Add new pytest markers: slow, cloud, local_only for better test selection - Add format-python-files and lint-python-files Makefile targets Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,21 +3,29 @@ default_stages: [commit] | |
| repos: | ||
| - repo: local | ||
| hooks: | ||
| - id: format | ||
| name: Format | ||
| # File-aware format hook - only runs on changed Python files | ||
| - id: format-files | ||
| name: Format Changed Files | ||
| stages: [commit] | ||
| language: system | ||
| entry: make format-python | ||
| pass_filenames: false | ||
| - id: lint | ||
| name: Lint | ||
| types: [python] | ||
| entry: uv run ruff check --fix | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The new Useful? React with 👍 / 👎. |
||
| pass_filenames: true | ||
|
|
||
| # File-aware lint hook - only runs on changed Python files | ||
| - id: lint-files | ||
| name: Lint Changed Files | ||
| stages: [commit] | ||
| language: system | ||
| entry: make lint-python | ||
| pass_filenames: false | ||
| types: [python] | ||
| entry: uv run ruff check | ||
|
devin-ai-integration[bot] marked this conversation as resolved.
Outdated
|
||
| pass_filenames: true | ||
|
|
||
| # Conditional template hook - only runs when template files change | ||
| - id: template | ||
| name: Build Templates | ||
| stages: [commit] | ||
| language: system | ||
| files: ^infra/templates/|\.jinja2$ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Restricting the Useful? React with 👍 / 👎. |
||
| entry: make build-templates | ||
| pass_filenames: false | ||
|
devin-ai-integration[bot] marked this conversation as resolved.
|
Uh oh!
There was an error while loading. Please reload this page.