From 4623552193af695f0f480b022af934a380dfdf7e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:27:25 +0000 Subject: [PATCH 1/3] Bump the python-packages group across 1 directory with 7 updates Updates the requirements on [pytest](https://github.com/pytest-dev/pytest), [pytest-codspeed](https://github.com/CodSpeedHQ/pytest-codspeed), [tzdata](https://github.com/python/tzdata), [griffe](https://github.com/mkdocstrings/griffe), [pyright](https://github.com/RobertCraigie/pyright-python), [ruff](https://github.com/astral-sh/ruff) and [mypy](https://github.com/python/mypy) to permit the latest version. Updates `pytest` from 8.3.2 to 8.3.3 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.3.2...8.3.3) Updates `pytest-codspeed` to 3.0.0 - [Release notes](https://github.com/CodSpeedHQ/pytest-codspeed/releases) - [Commits](https://github.com/CodSpeedHQ/pytest-codspeed/compare/v2.2.1...v3.0.0) Updates `tzdata` from 2024.1 to 2024.2 - [Release notes](https://github.com/python/tzdata/releases) - [Changelog](https://github.com/python/tzdata/blob/master/NEWS.md) - [Commits](https://github.com/python/tzdata/compare/2024.1...2024.2) Updates `griffe` from 1.2.0 to 1.5.1 - [Release notes](https://github.com/mkdocstrings/griffe/releases) - [Changelog](https://github.com/mkdocstrings/griffe/blob/main/CHANGELOG.md) - [Commits](https://github.com/mkdocstrings/griffe/compare/1.2.0...1.5.1) Updates `pyright` from 1.1.378 to 1.1.387 - [Release notes](https://github.com/RobertCraigie/pyright-python/releases) - [Commits](https://github.com/RobertCraigie/pyright-python/compare/v1.1.378...v1.1.387) Updates `ruff` from 0.6.3 to 0.7.2 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.6.3...0.7.2) Updates `mypy` from 1.11.2 to 1.13.0 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](https://github.com/python/mypy/compare/v1.11.2...v1.13.0) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: pytest-codspeed dependency-type: direct:production dependency-group: python-packages - dependency-name: tzdata dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: griffe dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: pyright dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-packages - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages - dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-packages ... Signed-off-by: dependabot[bot] --- tests/requirements-linting.txt | 8 ++++---- tests/requirements.txt | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/requirements-linting.txt b/tests/requirements-linting.txt index c614101d5..b3962930d 100644 --- a/tests/requirements-linting.txt +++ b/tests/requirements-linting.txt @@ -1,4 +1,4 @@ -griffe==1.2.0 -pyright==1.1.378 -ruff==0.6.3 -mypy==1.11.2 +griffe==1.5.1 +pyright==1.1.387 +ruff==0.7.2 +mypy==1.13.0 diff --git a/tests/requirements.txt b/tests/requirements.txt index 3fab8cc74..ab4444e88 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -5,9 +5,9 @@ inline-snapshot==0.13.3 hypothesis==6.111.2 # pandas doesn't offer prebuilt wheels for all versions and platforms we test in CI e.g. aarch64 musllinux pandas==2.1.3; python_version >= "3.9" and python_version < "3.13" and implementation_name == "cpython" and platform_machine == 'x86_64' -pytest==8.3.2 +pytest==8.3.3 # we run codspeed benchmarks on x86_64 CPython (i.e. native github actions architecture) -pytest-codspeed~=2.2.1; implementation_name == "cpython" and platform_machine == 'x86_64' +pytest-codspeed~=3.0.0; implementation_name == "cpython" and platform_machine == 'x86_64' # pytest-examples currently depends on aiohttp via black; we don't want to build # it on platforms like aarch64 musllinux in CI pytest-examples==0.0.13; implementation_name == "cpython" and platform_machine == 'x86_64' @@ -19,5 +19,5 @@ python-dateutil==2.9.0.post0 # numpy doesn't offer prebuilt wheels for all versions and platforms we test in CI e.g. aarch64 musllinux numpy==1.26.2; python_version >= "3.9" and python_version < "3.13" and implementation_name == "cpython" and platform_machine == 'x86_64' exceptiongroup==1.1; python_version < "3.11" -tzdata==2024.1 +tzdata==2024.2 typing_extensions==4.12.2 From 484947d58d9fc1cb53ebee65b675a20b7b126c83 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Mon, 4 Nov 2024 14:31:03 +0000 Subject: [PATCH 2/3] move pytest-codspeed install into CI only --- .github/workflows/codspeed.yml | 2 +- tests/requirements.txt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 6bb94fc1c..9dd4bbc6e 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -37,7 +37,7 @@ jobs: - run: pip uninstall pytest-speed -y if: steps.cache-py.outputs.cache-hit != 'true' - - run: pip install pytest-benchmark==4.0.0 + - run: pip install pytest-benchmark==4.0.0 pytest-codspeed if: steps.cache-py.outputs.cache-hit != 'true' - name: install rust stable diff --git a/tests/requirements.txt b/tests/requirements.txt index ab4444e88..837128b5a 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -6,8 +6,6 @@ hypothesis==6.111.2 # pandas doesn't offer prebuilt wheels for all versions and platforms we test in CI e.g. aarch64 musllinux pandas==2.1.3; python_version >= "3.9" and python_version < "3.13" and implementation_name == "cpython" and platform_machine == 'x86_64' pytest==8.3.3 -# we run codspeed benchmarks on x86_64 CPython (i.e. native github actions architecture) -pytest-codspeed~=3.0.0; implementation_name == "cpython" and platform_machine == 'x86_64' # pytest-examples currently depends on aiohttp via black; we don't want to build # it on platforms like aarch64 musllinux in CI pytest-examples==0.0.13; implementation_name == "cpython" and platform_machine == 'x86_64' From c418e8f9d11c18fddf075f20d333f91acbeb1027 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Mon, 4 Nov 2024 14:35:35 +0000 Subject: [PATCH 3/3] fix lint --- tests/test_errors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_errors.py b/tests/test_errors.py index 9ac993031..4760baad7 100644 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -551,7 +551,7 @@ def multi_raise_py_error(v: Any) -> Any: s2.validate_python('anything') cause_group = exc_info.value.__cause__ - assert isinstance(cause_group, BaseExceptionGroup) + assert isinstance(cause_group, BaseExceptionGroup) # noqa: F821,RUF100 # gated on 3.11+ above assert len(cause_group.exceptions) == 1 cause = cause_group.exceptions[0] @@ -576,7 +576,7 @@ def outer_raise_py_error(v: Any) -> Any: with pytest.raises(ValidationError) as exc_info: s3.validate_python('anything') - assert isinstance(exc_info.value.__cause__, BaseExceptionGroup) + assert isinstance(exc_info.value.__cause__, BaseExceptionGroup) # noqa: F821,RUF100 # gated on 3.11+ above assert len(exc_info.value.__cause__.exceptions) == 1 cause = exc_info.value.__cause__.exceptions[0] assert cause.__notes__ and cause.__notes__[-1].startswith('\nPydantic: ') @@ -585,7 +585,7 @@ def outer_raise_py_error(v: Any) -> Any: assert isinstance(subcause, ValidationError) cause_group = subcause.__cause__ - assert isinstance(cause_group, BaseExceptionGroup) + assert isinstance(cause_group, BaseExceptionGroup) # noqa: F821,RUF100 # gated on 3.11+ above assert len(cause_group.exceptions) == 1 cause = cause_group.exceptions[0]