Skip to content

Commit 81e9d22

Browse files
[pre-commit.ci] pre-commit autoupdate (#172)
updates: - [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.0](astral-sh/ruff-pre-commit@v0.7.4...v0.8.0) Signed-off-by: Bernát Gábor <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bernát Gábor <[email protected]>
1 parent 5814c0a commit 81e9d22

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.7.4"
27+
rev: "v0.8.0"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ lint.select = [
8080
"ALL",
8181
]
8282
lint.ignore = [
83-
"ANN101", # Missing type annotation for `self` in method
84-
"ANN102", # Missing type annotation for `cls` in classmethod
8583
"ANN401", # Dynamically typed expressions
8684
"COM812", # Conflict with formatter
8785
"CPY", # No copyright statements

tests/test_frontend_setuptools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def test_setuptools_prepare_metadata_for_build_wheel(frontend_setuptools: Subpro
7373
assert dist.metadata["Name"] == "demo"
7474
values = [v for k, v in dist.metadata.items() if k == "Requires-Dist"] # type: ignore[attr-defined]
7575
# ignore because "PackageMetadata" has no attribute "items"
76-
assert sorted(values) == ["magic >3", "requests >2"]
76+
expected = ["magic>3", "requests>2"] if sys.version_info[0:2] > (3, 8) else ["magic >3", "requests >2"]
77+
assert sorted(values) == expected
7778
assert isinstance(result.out, str)
7879
assert isinstance(result.err, str)
7980

0 commit comments

Comments
 (0)