Update Dependencies Jul 16 (auto) - #573
Merged
Merged
Conversation
Update project dependencies via uv lock --upgrade, sync requirements.txt, and bump GitHub Actions and pre-commit hook pins to their latest releases: - astral-sh/setup-uv: v8.2.0 -> v8.3.2 - astral-sh/ruff-pre-commit: v0.15.18 -> v0.15.21 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SssA8LG1aHm7a3FM2vaDr7
Under numpy 2.5.1, building an XHKG calendar raises a DeprecationWarning from within exchange_calendars. This was being recorded by the pytest.warns blocks in test_consolidated_warning, breaking the len(...) == 1 count assertions. Filter the recorded warnings to the package's own PricesCsvParsingConsolidatedWarning so the test verifies a single consolidated warning regardless of unrelated dependency warnings. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SssA8LG1aHm7a3FM2vaDr7
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.
Summary
Routine dependency update produced via the
dependencies-managementskill.uvand ranuv lock --upgrade, then re-syncedrequirements.txtand the environment.astral-sh/setup-uv:v8.2.0→v8.3.2actions/checkout@v7,actions/setup-python@v6,pre-commit/action@v3.0.1,release-drafter/release-drafter@v7— already at latest, unchanged.astral-sh/ruff-pre-commit:v0.15.18→v0.15.21pre-commit/pre-commit-hooks@v6.0.0— already at latest, unchanged.Notable locked package changes include
numpy(adds2.5.1for Python ≥ 3.12),mypy2.1.0→2.3.0,hypothesis,pytest9.1.0→9.1.1, and transitive updates.Code revision to support latest versions
tests/test_csv.py::test_consolidated_warning: undernumpy2.5.1, constructing an XHKG calendar emits aDeprecationWarningfrom withinexchange_calendars("the 'generic' unit for NumPy timedelta is deprecated"). This third-party warning was being recorded by thepytest.warnsblocks, breaking thelen(...) == 1count assertions. The test now filters recorded warnings to the package's ownPricesCsvParsingConsolidatedWarning, so it still verifies exactly one consolidated warning while remaining robust to unrelated dependency warnings. The underlying deprecation originates inexchange_calendarsand so is not fixable in this package.Testing
Ran the local test suite excluding the network-dependent modules (
tests/test_yahoo.pyandtests/test_calendar_utils.pywere skipped as the Yahoo andraw.githubusercontent.comendpoints were unreachable from the runner):After the test fix the previously failing
test_consolidated_warningpasses.ruff checkandruff format --checkpass under the newly pinnedv0.15.21.🤖 Generated with Claude Code
Generated by Claude Code