From 81e9d2214d4904afefac2e7decad8d5c5cd95b45 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 18:11:06 -0800 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#172) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.7.4...v0.8.0) Signed-off-by: Bernát Gábor Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor --- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 -- tests/test_frontend_setuptools.py | 3 ++- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aa7f6c1..522e6fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.7.4" + rev: "v0.8.0" hooks: - id: ruff-format - id: ruff diff --git a/pyproject.toml b/pyproject.toml index 6d42be8..c5233f6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,8 +80,6 @@ lint.select = [ "ALL", ] lint.ignore = [ - "ANN101", # Missing type annotation for `self` in method - "ANN102", # Missing type annotation for `cls` in classmethod "ANN401", # Dynamically typed expressions "COM812", # Conflict with formatter "CPY", # No copyright statements diff --git a/tests/test_frontend_setuptools.py b/tests/test_frontend_setuptools.py index e894e3c..a08dc06 100644 --- a/tests/test_frontend_setuptools.py +++ b/tests/test_frontend_setuptools.py @@ -73,7 +73,8 @@ def test_setuptools_prepare_metadata_for_build_wheel(frontend_setuptools: Subpro assert dist.metadata["Name"] == "demo" values = [v for k, v in dist.metadata.items() if k == "Requires-Dist"] # type: ignore[attr-defined] # ignore because "PackageMetadata" has no attribute "items" - assert sorted(values) == ["magic >3", "requests >2"] + expected = ["magic>3", "requests>2"] if sys.version_info[0:2] > (3, 8) else ["magic >3", "requests >2"] + assert sorted(values) == expected assert isinstance(result.out, str) assert isinstance(result.err, str)