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)