From 24f814de5ff6e2cd1aea0bcf8e09bd49bdce844b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 29 Oct 2024 16:25:30 -1000 Subject: [PATCH] Upgrade codspeed to 3.0.0 (#1395) --- .pre-commit-config.yaml | 8 ++++---- requirements/test.txt | 2 +- tests/test_quoting_benchmarks.py | 2 +- tests/test_url_benchmarks.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2d04c5e15..ee0bcff15 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -120,7 +120,7 @@ repos: - pytest - tomli # requirement of packaging/pep517_backend/ - types-setuptools # requirement of packaging/pep517_backend/ - - pytest_codspeed + - pytest_codspeed==3.0.0 args: - --python-version=3.13 - --txt-report=.tox/.tmp/.mypy/python-3.13 @@ -138,7 +138,7 @@ repos: - pytest - tomli # requirement of packaging/pep517_backend/ - types-setuptools # requirement of packaging/pep517_backend/ - - pytest_codspeed + - pytest_codspeed==3.0.0 args: - --python-version=3.12 - --txt-report=.tox/.tmp/.mypy/python-3.12 @@ -158,7 +158,7 @@ repos: - types-setuptools # requirement of packaging/pep517_backend/ - types-Pygments - types-colorama - - pytest_codspeed + - pytest_codspeed==3.0.0 args: - --python-version=3.10 - --txt-report=.tox/.tmp/.mypy/python-3.10 @@ -178,7 +178,7 @@ repos: - types-setuptools # requirement of packaging/pep517_backend/ - types-Pygments - types-colorama - - pytest_codspeed + - pytest_codspeed==3.0.0 args: - --python-version=3.9 - --txt-report=.tox/.tmp/.mypy/python-3.9 diff --git a/requirements/test.txt b/requirements/test.txt index bb3740d7e..68d34367f 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -5,6 +5,6 @@ idna==3.10 multidict==6.1.0 propcache==0.2.0 pytest==8.3.3 -pytest-codspeed==2.2.1 pytest-cov>=2.3.1 pytest-xdist +pytest_codspeed==3.0.0 diff --git a/tests/test_quoting_benchmarks.py b/tests/test_quoting_benchmarks.py index c1d01833e..fb71b5a5b 100644 --- a/tests/test_quoting_benchmarks.py +++ b/tests/test_quoting_benchmarks.py @@ -1,6 +1,6 @@ """codspeed benchmark for yarl._quoting module.""" -from pytest_codspeed import BenchmarkFixture # type: ignore[import-untyped] +from pytest_codspeed import BenchmarkFixture from yarl._quoting import _Quoter, _Unquoter diff --git a/tests/test_url_benchmarks.py b/tests/test_url_benchmarks.py index 7e9a9df79..4256481e2 100644 --- a/tests/test_url_benchmarks.py +++ b/tests/test_url_benchmarks.py @@ -1,6 +1,6 @@ """codspeed benchmarks for yarl.URL.""" -from pytest_codspeed import BenchmarkFixture # type: ignore[import-untyped] +from pytest_codspeed import BenchmarkFixture from yarl import URL