Repository navigation
Match prereleases in remote ranges without mutating specifiers - #1438
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 49 minutes. View limit details
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
260ceef to
d052b8c
Compare
|
@coderabbitai full review |
|
|
@coderabbitai The docstring-coverage warning refers to the previous commit. At d052b8c, both touched methods have docstrings. Does the warning still apply to the current head? |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
git rev-parse HEAD
gh pr view 1438 --repo pulp/pulp_python --json headRefOid --jq '.headRefOid'
gh api repos/pulp/pulp_python/issues/1438/comments --paginate --jq '.[] | select(.user.login == "coderabbitai[bot]") | {created_at, body}'
ast-grep outline pulp_python/app/utils.py --match PackageIncludeFilter --view expanded
python - <<'PY'
import ast
from pathlib import Path
path = Path("pulp_python/app/utils.py")
source = path.read_text()
tree = ast.parse(source)
for cls in tree.body:
if isinstance(cls, ast.ClassDef) and cls.name == "PackageIncludeFilter":
for method in cls.body:
if isinstance(method, (ast.FunctionDef, ast.AsyncFunctionDef)) and method.name in ("_parse_packages", "filter_release"):
print(f"{path}: Line {method.lineno}: {cls.name}.{method.name}")
print(f"Docstring: {ast.get_docstring(method)!r}")
PY
git show --format=fuller --stat d052b8c --Length of output: 18650
I verified that both touched methods in
The displayed warning remains from the earlier review of ✏️ Learnings added
You are interacting with an AI system. |
gerrod3
left a comment
There was a problem hiding this comment.
Thanks for making this proactive fix! Much appreciated!
Backport to 3.37: 💚 backport PR created✅ Backport PR branch: Backported as #1439 🤖 @patchback |
Backport to 3.36: 💚 backport PR created✅ Backport PR branch: Backported as #1440 🤖 @patchback |
Backport to 3.27: 💚 backport PR created✅ Backport PR branch: Backported as #1441 🤖 @patchback |
Backport to 3.19: 💚 backport PR created✅ Backport PR branch: Backported as #1442 🤖 @patchback |
Backport to 3.13: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply e28456f on top of patchback/backports/3.13/e28456fb25cf99178844947d2f30f755ab2661cb/pr-1438 Backporting merged PR #1438 into main
🤖 @patchback |
Backport to 3.12: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply e28456f on top of patchback/backports/3.12/e28456fb25cf99178844947d2f30f755ab2661cb/pr-1438 Backporting merged PR #1438 into main
🤖 @patchback |
Backport to 3.11: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply e28456f on top of patchback/backports/3.11/e28456fb25cf99178844947d2f30f755ab2661cb/pr-1438 Backporting merged PR #1438 into main
🤖 @patchback |
I plan to deprecate mutability of
packaging's core objects to improve performance and hashability. This PR removes specifier mutation from Pulp's remote range filters ahead of that change.A new
__replace__API will cover callers that need a modified copy in future versions of packaging. These filters don't need a copy: their include and exclude comparisons passprereleases=Truetocontains(), keeping prerelease selection.