feat: add pre-commit to uv dependencies#427
feat: add pre-commit to uv dependencies#427sheltoncyril wants to merge 1 commit intoopendatahub-io:mainfrom
Conversation
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe change updates the project's configuration by adding the Changes
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
The following are automatically added/executed:
Available user actions:
Supported labels{'/hold', '/wip', '/verified', '/lgtm', '/cherry-pick', '/build-push-pr-image'} |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
pyproject.toml (1)
73-73: Prefer keepingpre-commitin the dev dependency list
pre-commitis strictly a development-time tool; bundling it in[project].dependenciesmeans it will be installed in every production/CI runtime that consumes the package—even when hooks are never invoked—adding unnecessary weight and potential attack surface.Consider moving it to the existing
[tool.uv].dev-dependenciesarray:@@ - "llama_stack_client==0.2.10", - "pre-commit>=4.2.0", + "llama_stack_client==0.2.10", ] @@ [tool.uv] dev-dependencies = [ "ipdb>=0.13.13", "ipython>=8.12.3", + "pre-commit>=4.2.0", ]If the goal is solely to prevent
uv syncfrom uninstallingpre-commit, pinning it as a dev-dependency achieves the same outcome without bloating runtime environments.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
uv.lockis excluded by!**/*.lock
📒 Files selected for processing (1)
pyproject.toml(1 hunks)
| "pytest-html>=4.1.1", | ||
| "fire", | ||
| "llama_stack_client==0.2.10", | ||
| "pre-commit>=4.2.0", |
There was a problem hiding this comment.
Precommit should not be needed with in uv. Why do we need it?
There was a problem hiding this comment.
Got it, closing it as this was discussed offline. Thanks!
adding pre-commit as a dependency as pre-commit gets uninstalled when
uv syncis performed