fix: replace unused pydantic import with importlib.util.find_spec#1343
Conversation
Silences ruff F401 that was failing the pre-commit CI. Made-with: Cursor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughRefactored pydantic detection in tests to use Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Made-with: Cursor
themavik
left a comment
There was a problem hiding this comment.
importlib.util.find_spec("pydantic") is a clean way to gate the integration test without importing pydantic just for the probe.
Summary
import pydanticwithimportlib.util.find_spec("pydantic")to test for availability.Test plan
ruff checkpasses on the fileMade with Cursor
Summary by CodeRabbit