fix(RHOAIENG-50189): Update nltk to 3.9.3#132
fix(RHOAIENG-50189): Update nltk to 3.9.3#132ruivieira merged 2 commits intoopendatahub-io:incubationfrom
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe PR updates the minimum NLTK version requirement from 3.9.1 to 3.9.3 in two modules ( Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Security considerationsActionable items (security-first, prioritized):
Only actionable flags above; do not merge until CI passes and the dependency removals and NLTK bump are explicitly validated. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📝 Coding Plan
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 Tip CodeRabbit can use your project's `ruff` configuration to improve the quality of Python code reviews.Add a Ruff configuration file to your project to customize how CodeRabbit runs |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
requirements.txt (1)
86-86: Remove the redundantimplementation_namecondition from thepycparsermarker.The condition
implementation_name != "PyPy"uses case-mismatched logic. The canonical value forimplementation_nameon PyPy is"pypy"(lowercase), not"PyPy", making this condition always evaluate to true and adding no functional value. Theplatform_python_implementation == "PyPy"check alone sufficiently scopes the requirement.Proposed fix
-pycparser==3.0 ; python_version >= "3.11" and python_version < "3.13" and platform_python_implementation == "PyPy" and implementation_name != "PyPy" +pycparser==3.0 ; python_version >= "3.11" and python_version < "3.13" and platform_python_implementation == "PyPy"🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@requirements.txt` at line 86, Remove the redundant implementation_name check from the pycparser environment marker in the requirements entry for "pycparser==3.0"; specifically, update the marker that currently reads 'python_version >= "3.11" and python_version < "3.13" and platform_python_implementation == "PyPy" and implementation_name != "PyPy"' to drop the 'implementation_name != "PyPy"' clause so the marker relies only on python_version range and platform_python_implementation == "PyPy".
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@requirements.txt`:
- Line 22: requirements.txt currently pins eval-hub-sdk==0.1.2 but
pyproject.toml and the code expect the adapter extra (evalhub.adapter is
imported in main.py around the imports block and later at use sites), so update
the requirements entry to include the adapter extra
(eval-hub-sdk[adapter]==0.1.2) while preserving the existing Python version
marker; this ensures the evalhub.adapter module is installed and prevents
ImportError when bootstrapping from requirements.txt.
---
Nitpick comments:
In `@requirements.txt`:
- Line 86: Remove the redundant implementation_name check from the pycparser
environment marker in the requirements entry for "pycparser==3.0"; specifically,
update the marker that currently reads 'python_version >= "3.11" and
python_version < "3.13" and platform_python_implementation == "PyPy" and
implementation_name != "PyPy"' to drop the 'implementation_name != "PyPy"'
clause so the marker relies only on python_version range and
platform_python_implementation == "PyPy".
ℹ️ Review info
⚙️ Run configuration
Configuration used: Central YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 8dd64824-31a2-482c-9e04-6afa2130fbd0
⛔ Files ignored due to path filters (1)
poetry.lockis excluded by!**/*.lock
📒 Files selected for processing (4)
lm_eval/tasks/ifeval/instructions_util.pylm_eval/tasks/leaderboard/ifeval/instructions_util.pypyproject.tomlrequirements.txt
ruivieira
left a comment
There was a problem hiding this comment.
Is it ok to restore the eval-hub-sdk[adapter]? Thanks!
* Update nltk to 3.9.3 * Revert eval-hub[adapter]
* Update nltk to 3.9.3 * Revert eval-hub[adapter] Signed-off-by: Rui Vieira <ruidevieira@googlemail.com>
Update
nltkto 3.9.3+ to include nltk/nltk#3468Summary by CodeRabbit