use uv run --no-sync in pre-commit commands#6472
Conversation
allow pre-commit to work whether you have activated the virtualenv or not
Greptile SummaryThis PR updates
Confidence Score: 5/5This PR is safe to merge β it makes a narrow, mechanical change to pre-commit hook invocations with no logic or runtime code affected. The change only touches the pre-commit config, adding No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[git commit triggered] --> B[pre-commit runs hooks]
B --> C{virtualenv activated?}
C -- Before PR: Yes --> D[Direct tool invocation\ne.g. ruff format]
C -- Before PR: No --> E[Tool not found on PATH\nβ Hook fails]
C -- After PR: Either --> F[uv run --no-sync tool]
F --> G[uv resolves tool from\nproject environment]
G --> H[Hook executes successfully β
]
Reviews (1): Last reviewed commit: "use `uv run --no-sync` in pre-commit com..." | Re-trigger Greptile |
Merging this PR will not alter performance
Comparing Footnotes
|
allow pre-commit to work whether you have activated the virtualenv or not