fix: only check for downgraded packages among the constrained dependencies, do not perform update in that case if warn on error is active#121
Conversation
…ncies, do not perform update in that case if warn on error is active
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe PR enhances dependency parsing in ChangesConda Environment Update Logic
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@snakedeploy/conda.py`:
- Line 166: process_dependencies currently uses list(filter(process_dependency,
conda_env["dependencies"])) which only filters by truthiness and returns the
original dependency strings instead of the transformed values returned by
process_dependency; change it to map process_dependency over
conda_env["dependencies"] and collect non-None results (e.g., [r for r in
(process_dependency(dep) for dep in conda_env["dependencies"]) if r is not
None]) so callers receive the transformed dependency strings (and ensure any
downstream uses like the downgraded set intersection operate on these
parsed/transformed names rather than the raw dependency entries).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 7cba05d9-6182-4267-9f2c-4ae426348ce5
📒 Files selected for processing (1)
snakedeploy/conda.py
Summary by CodeRabbit