Skip to content

Update Dependencies Nov 27 (auto) - #593

Merged
maread99 merged 3 commits into
masterfrom
claude/ecstatic-cray-1h9j70
Nov 27, 2026
Merged

maread99 merged 3 commits into
masterfrom
claude/ecstatic-cray-1h9j70

Conversation

@maread99

@maread99 maread99 commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

🤖 Generated by Claude Code (agent autonomy 5/5)

Summary

Updates project dependencies and CI/pre-commit tooling to their latest versions:

  • Upgraded uv and refreshed uv.lock / requirements.txt.
  • Bumped the astral-sh/setup-uv GitHub Action pin to v10.4.0.
  • Bumped the ruff-pre-commit hook pin to v0.17.6.
  • Added check_freq=False to assert_index_equal calls in the test suite where the compared indexes' freq legitimately differs, to silence a pandas 3.1 warning ahead of a future version that will check freq by default.
  • Added a small compatibility wrapper in tests/utils.py so those calls also work against the older pandas that Python 3.10 resolves to (which lacks check_freq and initially broke CI on that version).

  • I've reviewed/revised the PR title (if unticked, treat it as an agent's unchecked title).
  • I've reviewed/revised the summary above and it covers what a reviewer needs to know (if unticked, treat it as an agent's unchecked summary).

Agent autonomy

This was a scheduled, fully autonomous run of the dependencies-management skill: the task was supplied by a schedule with no further steering, and all implementation decisions (including diagnosing and fixing the pandas warnings, and the subsequent CI failure on Python 3.10) were made by the agent.

Contributor review

I have reviewed the (tick all that apply):

  • full diff across the test suite
  • full diff across dev files
  • commit messages
  • agent's detail below
Claude Sonnet 5

Summary

Routine dependency update performed via the repository's dependencies-management skill.

  • Updated uv itself (via the pip fallback, since the standalone installer script was unavailable and the binary wasn't a standalone install).
  • Ran uv lock --upgrade, exported requirements.txt, and ran uv sync --inexact. This picked up minor/patch bumps across ~20 packages (e.g. exchange-calendars, numpy, pyyaml, pydantic, types-pytz).
  • Checked uses: pins across .github/workflows/: actions/checkout@v7 and release-drafter/release-drafter@v7 are major-version tags already at their latest release; bumped astral-sh/setup-uv from v10.3.3 to v10.4.0.
  • Ran pre-commit autoupdate: bumped ruff-pre-commit from v0.17.4 to v0.17.6 (pre-commit-hooks was already current). Ran pre-commit run --all-files; all hooks pass with no further changes needed.
  • Checked network reachability for the Yahoo Finance API and raw.githubusercontent.com: both were unreachable from this environment (HTTP 429 and 400 respectively), so ran the test suite excluding tests/test_yahoo.py and tests/test_calendar_utils.py. All 1384 tests passed.
  • The run raised 1455 warnings. All but 22 originate in dependency code (pandas, exchange_calendars deprecations such as DatetimeIndex.weekday and the NumPy "generic" timedelta unit) and are left unfixed per the skill's policy. The remaining 22 were a Pandas4Warning from pandas.testing.assert_index_equal, raised at specific call sites in the test suite because pandas 3.1 will check the index freq attribute by default in a future version. At each of these sites the compared indexes' freq legitimately differs (e.g. a calendar session index carrying a CustomBusinessDay freq compared against a constructed or sliced index with no freq), so check_freq=False was added to each call to preserve the existing, correct comparison and silence the warning. Re-ran the three affected tests individually to confirm the warnings are gone and the tests still pass.
  • CI subsequently failed on build-and-test (macos-latest, 3.10) with TypeError: assert_index_equal() got an unexpected keyword argument 'check_freq'. Cause: uv.lock resolves pandas 2.3.3 for python_full_version < '3.11' and pandas 3.1.1 for >= '3.11', and check_freq was only added to assert_index_equal in pandas 3.1. Fix: added a wrapper assert_index_equal in tests/utils.py that inspects the installed pandas's signature once at import and drops check_freq when unsupported (safe, since such pandas versions never check freq regardless); routed the three affected test files' imports through this wrapper instead of pandas.testing directly. Verified the fallback against an isolated pandas==2.3.3 install, then re-ran the three affected tests locally (pandas 3.1.1) to confirm they still pass.
  • Noted on issue todo when bump minimum Python version to 3.11 #352 ("todo when bump minimum Python version to 3.11") that this wrapper becomes unreachable, dead code once the Python floor bumps to 3.11 (since the pandas version split sits exactly there), and can be removed at that point.

Test plan

  • uv run pre-commit run --all-files
  • uv run pytest --ignore=tests/test_yahoo.py --ignore=tests/test_calendar_utils.py -v (1384 passed, no fixable warnings remaining)
  • CI pre-commit workflow — passed
  • CI build-and-test matrix: ubuntu-latest/macos-latest/windows-latest × 3.10/3.14 — all 6 jobs passed

🤖 Generated with Claude Code

- Update uv.lock and requirements.txt to latest resolvable dependency versions.
- Bump astral-sh/setup-uv GitHub Action to v10.4.0.
- Bump ruff-pre-commit hook to v0.17.6.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
pandas 3.1 warns ahead of a future version that will check the index
freq attribute by default. Pass check_freq=False at each call site
where the compared indexes' freq legitimately differs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@maread99 maread99 added the dependencies Pull requests that update a dependency file label Nov 27, 2026 — with Claude
pandas < 3.1 (resolved for Python 3.10) does not accept `check_freq` on
`assert_index_equal`, so CI failed with a TypeError. Add a wrapper in
tests/utils.py that drops the keyword on such pandas versions, which
never check an index's freq attribute regardless, and route the test
suite's assert_index_equal imports through it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@maread99
maread99 merged commit 38e1cd6 into master Nov 27, 2026
7 checks passed
@maread99
maread99 deleted the claude/ecstatic-cray-1h9j70 branch November 27, 2026 12:46
@maread99 maread99 mentioned this pull request Nov 27, 2026
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants