diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c8d81deed7a..2c576d90a5b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -22,8 +22,7 @@ repos:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
- # Ruff version.
- rev: v0.0.287
+ rev: v0.0.292
hooks:
- id: ruff
diff --git a/tests/conftest.py b/tests/conftest.py
index 9b383d4af2f..6ae2e6d62d8 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -943,7 +943,10 @@ def html_index_with_onetime_server(
class InDirectoryServer(http.server.ThreadingHTTPServer):
def finish_request(self, request: Any, client_address: Any) -> None:
self.RequestHandlerClass(
- request, client_address, self, directory=str(html_index_for_packages) # type: ignore[call-arg] # noqa: E501
+ request,
+ client_address,
+ self,
+ directory=str(html_index_for_packages), # type: ignore[call-arg]
)
class Handler(OneTimeDownloadHandler):
diff --git a/tests/unit/test_collector.py b/tests/unit/test_collector.py
index 5410a4afc03..3c8b81de44d 100644
--- a/tests/unit/test_collector.py
+++ b/tests/unit/test_collector.py
@@ -625,7 +625,7 @@ def test_parse_links__yanked_reason(anchor_html: str, expected: Optional[str]) -
),
# Test with a provided hash value.
(
- '', # noqa: E501
+ '',
MetadataFile({"sha256": "aa113592bbe"}),
{},
),