feat: add pdm.lock to recognized lockfiles#436
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesPDM Lockfile Detection
Possibly Related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
natifridman
left a comment
There was a problem hiding this comment.
PR #436 Review: feat: add pdm.lock to recognized lockfiles
Verdict: Approve
This is a correct and welcome addition. PDM is a well-established Python package manager (PEP 582 / PEP 621), and its pdm.lock file contains exact pinned versions — it rightfully belongs in the strict_lock_files list.
Suggestions (non-blocking)
1. Ordering — group with Python lock files
Currently pdm.lock is appended after go.sum, but all other Python lock files are grouped together (lines 53–55). Moving it next to uv.lock would be more consistent:
"poetry.lock", # Poetry
"Pipfile.lock", # Pipenv
"uv.lock", # uv
"pdm.lock", # PDM # <-- here instead of after go.sum2. Comment casing
The comment says # pdm but every other entry uses the tool's proper name with capitalization (# Poetry, # Pipenv, # uv, # Rust, # Ruby, # Go). PDM is typically written uppercase — should be # PDM.
3. Test coverage (nice-to-have)
The existing test suite covers package-lock.json, poetry.lock, requirements.txt, and Cargo.lock individually, but no test covers pdm.lock. A short test similar to test_python_poetry_lock would prevent future regressions if someone accidentally removes the entry. Not blocking, but worth adding.
What looks good
- Correct file —
stub_assessors.py:59is the right place pdm.lockis auto-managed with exact versions, sostrict_lock_files(notmanual_lock_files) is the correct classification- No logic changes needed — the existing assessor flow handles it automatically
- The commit message follows conventional commits format
This review was generated by Claude Code.
Description
Adding pdm.lock to recognized Python lockfiles
Changes Made
pdm.lockto the lockfiles list insrc/agentready/assessors/stub_assessors.pyTesting
Summary by CodeRabbit