Make cli non-optional#572
Conversation
Summary by CodeRabbit
WalkthroughThe ChangesOptional Dependency Groups Restructuring
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes 🚥 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)
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.
🧹 Nitpick comments (1)
pyproject.toml (1)
35-36: ⚡ Quick winRemove unreachable backport dependencies from core requirements.
Given
requires-python = ">=3.10"(Line 11), the environment markers forimportlib-metadata; python_version<'3.8'andimportlib-resources; python_version<'3.9'can never be true. The codebase conditionally imports these modules based on runtime version checks, but for Python 3.10+ the standard library versions are always used. These entries should be removed.Proposed patch
dependencies = [ "PyYAML", "kubernetes>=29.0.0", "jinja2>=3.1.0", @@ "click>=7.1.2", "gql[requests]>=3.5.0", - "importlib-metadata; python_version<'3.8'", - "importlib-resources; python_version<'3.9'", "junitparser", "multidict",🤖 Prompt for 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. In `@pyproject.toml` around lines 35 - 36, Remove the unreachable backport dependencies from the core requirements in pyproject.toml: because requires-python = ">=3.10", delete the entries "importlib-metadata; python_version<'3.8'" and "importlib-resources; python_version<'3.9'"; ensure any conditional runtime imports remain but do not reference these backport markers in the core dependencies list so the packaging metadata matches the declared Python minimum.
🤖 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.
Nitpick comments:
In `@pyproject.toml`:
- Around line 35-36: Remove the unreachable backport dependencies from the core
requirements in pyproject.toml: because requires-python = ">=3.10", delete the
entries "importlib-metadata; python_version<'3.8'" and "importlib-resources;
python_version<'3.9'"; ensure any conditional runtime imports remain but do not
reference these backport markers in the core dependencies list so the packaging
metadata matches the declared Python minimum.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Enterprise
Run ID: f3ebabea-5590-418c-b2ad-2bc65f7bfea9
📒 Files selected for processing (1)
pyproject.toml
Right now if you want the cli, you need to run
pip install crc-bonfire[cli], which is an introduced bug.