Repository navigation
Update Dependencies Nov 27 (auto) - #593
Merged
Merged
Conversation
- 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>
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>
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Generated by Claude Code (agent autonomy 5/5)
Summary
Updates project dependencies and CI/pre-commit tooling to their latest versions:
uvand refresheduv.lock/requirements.txt.astral-sh/setup-uvGitHub Action pin tov10.4.0.ruff-pre-commithook pin tov0.17.6.check_freq=Falsetoassert_index_equalcalls in the test suite where the compared indexes'freqlegitimately differs, to silence a pandas 3.1 warning ahead of a future version that will checkfreqby default.tests/utils.pyso those calls also work against the older pandas that Python 3.10 resolves to (which lackscheck_freqand initially broke CI on that version).Agent autonomy
This was a scheduled, fully autonomous run of the
dependencies-managementskill: 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):
Claude Sonnet 5
Summary
Routine dependency update performed via the repository's
dependencies-managementskill.uvitself (via the pip fallback, since the standalone installer script was unavailable and the binary wasn't a standalone install).uv lock --upgrade, exportedrequirements.txt, and ranuv sync --inexact. This picked up minor/patch bumps across ~20 packages (e.g.exchange-calendars,numpy,pyyaml,pydantic,types-pytz).uses:pins across.github/workflows/:actions/checkout@v7andrelease-drafter/release-drafter@v7are major-version tags already at their latest release; bumpedastral-sh/setup-uvfromv10.3.3tov10.4.0.pre-commit autoupdate: bumpedruff-pre-commitfromv0.17.4tov0.17.6(pre-commit-hookswas already current). Ranpre-commit run --all-files; all hooks pass with no further changes needed.raw.githubusercontent.com: both were unreachable from this environment (HTTP 429 and 400 respectively), so ran the test suite excludingtests/test_yahoo.pyandtests/test_calendar_utils.py. All 1384 tests passed.pandas,exchange_calendarsdeprecations such asDatetimeIndex.weekdayand the NumPy "generic" timedelta unit) and are left unfixed per the skill's policy. The remaining 22 were aPandas4Warningfrompandas.testing.assert_index_equal, raised at specific call sites in the test suite because pandas 3.1 will check the indexfreqattribute by default in a future version. At each of these sites the compared indexes'freqlegitimately differs (e.g. a calendar session index carrying aCustomBusinessDayfreq compared against a constructed or sliced index with no freq), socheck_freq=Falsewas 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.build-and-test (macos-latest, 3.10)withTypeError: assert_index_equal() got an unexpected keyword argument 'check_freq'. Cause:uv.lockresolves pandas2.3.3forpython_full_version < '3.11'and pandas3.1.1for>= '3.11', andcheck_freqwas only added toassert_index_equalin pandas 3.1. Fix: added a wrapperassert_index_equalintests/utils.pythat inspects the installed pandas's signature once at import and dropscheck_freqwhen unsupported (safe, since such pandas versions never checkfreqregardless); routed the three affected test files' imports through this wrapper instead ofpandas.testingdirectly. Verified the fallback against an isolatedpandas==2.3.3install, then re-ran the three affected tests locally (pandas 3.1.1) to confirm they still pass.Test plan
uv run pre-commit run --all-filesuv run pytest --ignore=tests/test_yahoo.py --ignore=tests/test_calendar_utils.py -v(1384 passed, no fixable warnings remaining)pre-commitworkflow — passedbuild-and-testmatrix: ubuntu-latest/macos-latest/windows-latest × 3.10/3.14 — all 6 jobs passed🤖 Generated with Claude Code