Patch: Fix Pytest and Jupter Book compatibility issues for latest releases #230
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.
Fix Pytest v9 type enforcement and Jupyter-Book v2 migration issues
This PR fixes a user-facing bug in the pytest custom hooks for running the unit and regression test suite in isolation caused by the enforcement of
list[args]typing adopted in pytest args. Additionally, the Jupyter Book version is capped at 1.x to avoid potential migration issues for v2.PR Checklist
CHANGELOG.mdhas been updated to describe the changes made in this PRDocstrings are up-to-dateRelateddocs/files are up-to-date, or added when necessaryExamples have been updatedRelated issues
The pytest issue was found in a separate project, and reported in pytest-dev/pytest#13996.
Impacted areas of the software
tests/conftest.pypytest_configure: ConvertsPathobjects tostrand sorts the tests alphabetically.pyproject.toml: Pinsjupyter-bookto only use 1.x releases.Additional supporting information
Python version: 3.12.9
WOMBAT version (
wombat.__version__): 0.12.2Test results, if applicable
Tests pass when run in isolation and together