Skip to content

build(deps): refresh the lock, lift the caps on mypy, ruff, pytest-cov, pandas, openai, huggingface-hub - #402

Merged
JonasHeinickeBio merged 1 commit into
mainfrom
chore/update-dependencies
Nov 2, 2026
Merged

JonasHeinickeBio merged 1 commit into
mainfrom
chore/update-dependencies

Conversation

@JonasHeinickeBio

@JonasHeinickeBio JonasHeinickeBio commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

What

  1. Lock refresh. poetry update inside the current constraints: 91 versions move, one transitive package is new (ipython-pygments-lexers). Includes the security patch releases cryptography 50.0.2 and pyjwt 2.15.1. The lock is now written by Poetry 2.5.1 (it was 2.3.2), which is why the diff is large.
  2. Caps lifted where a new major exists and the solver accepts it: mypy <3, pytest-cov <8, ruff <0.18, types-PyYAML (was pinned to a 2024 stub), and for the optional extras pandas <4, openai <4, huggingface-hub <3. The ruff pre-commit rev follows the lock (v0.17.3), plus bandit 1.9.4 and pre-commit-hooks v6.0.0.
  3. ruff format 0.17 reflows two lines (mcp/_rhetoric.py, a README example).

Verified

  • brws039, fresh venv from the exported lock, Python 3.10: mypy clean on 221 files, 8347 passed, 442 skipped. Same with the lifted caps (mypy 2.4.1, ruff 0.17.3, pytest-cov 7.1, openai 3.42, types-PyYAML 2026): ruff check clean, mypy clean, 8347 passed.
  • pandas 3 only resolves on Python 3.11+, so brws039 (3.10) did not run it. Locally on Python 3.13 with pandas 3.1.0, numpy 2.5.4, openai 3.42.1: the 16 test files that use pandas, numpy, openai, matplotlib or langchain pass (515 passed). The CI matrix is the check for the rest of 3.11 to 3.13.
  • bandit 1.9.4 over src/: no issues.

Not verified

  • The ruff, ruff-format and bandit pre-commit hooks did not run locally (no Python 3.12 here to build their environments); I ran the same tools directly.
  • Nothing was run against the live services with openai 3 / huggingface-hub 2: the tests mock them.

Left out

GitHub Actions bumps (Dependabot #369, #371, #394) touch workflow files and stay separate. Dependabot's pip PRs #354-#358 are superseded by this lock.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated third-party package versions, including cryptography and authentication libraries.
    • Expanded supported version ranges for several optional integrations and development tools, and adjusted package versions for different Python versions.
    • Updated code quality and pre-commit tools.
    • Refreshed the changelog with dependency updates and verification results.

…v, pandas, openai, huggingface-hub

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file ci tests parser labels Nov 2, 2026
@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 582f6993-5a08-4f44-afc7-3d91f6331316
Commits

Reviewing files that changed from the base of the PR and between 1cfb01d and 5c9b1c0.

Files ignored due to path filters: 1
  • poetry.lock is excluded by !**/*.lock
Files selected for processing: 6
  • .pre-commit-config.yaml
  • CHANGELOG.md
  • pyproject.toml
  • requirements.txt
  • src/pyeuropepmc/mcp/_rhetoric.py
  • tests/parser/functional/README.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

Dependency bounds, pinned package versions, and pre-commit tool revisions are updated. The changes also include a behavior-neutral sort-key edit and a README example delimiter change.

Changes: Dependency updates

Layer / File(s) Summary
Dependency constraints and pins
pyproject.toml, requirements.txt, CHANGELOG.md
Development and optional dependency bounds and pinned versions are updated. The changelog records the lockfile refresh and related dependency updates.
Pre-commit revisions
.pre-commit-config.yaml
The Ruff, Bandit, and pre-commit-hooks revisions are updated.

Behavior-neutral edits

Layer / File(s) Summary
Expression and example edits
src/pyeuropepmc/mcp/_rhetoric.py, tests/parser/functional/README.md
The sort-key expression loses redundant parentheses. The README example changes its string delimiters; both edits preserve behavior.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested labels: dependencies, documentation

Merge Risk: Minimal · up to 5c9b1

No actionable merge-blocking defect is established. The dependency refresh and small cleanups appear mergeable subject to normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly identifies the main dependency update: refreshing the lockfile and lifting version caps for the listed tools and optional dependencies.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files. (5 skipped: 5 unsupported.)

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #402      +/-   ##
==========================================
- Coverage   82.55%   82.55%   -0.01%     
==========================================
  Files         217      217              
  Lines       33133    33133              
  Branches     5984     5984              
==========================================
- Hits        27354    27352       -2     
- Misses       4492     4495       +3     
+ Partials     1287     1286       -1     
Files with missing lines Coverage Δ
src/pyeuropepmc/mcp/_rhetoric.py 99.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

@JonasHeinickeBio
JonasHeinickeBio merged commit c6fe1f6 into main Nov 2, 2026
26 checks passed
@JonasHeinickeBio
JonasHeinickeBio deleted the chore/update-dependencies branch November 2, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation parser tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant