Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#172)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pre-commit-ci[bot] and gaborbernat authored Nov 26, 2024
1 parent 5814c0a commit 81e9d22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/test_frontend_setuptools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 81e9d22

Please sign in to comment.