From dcb9dc03698b8c59451b98d236ae44b4959c0343 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 3 Oct 2023 09:01:40 +0200 Subject: [PATCH] Wrap long lines --- .pre-commit-config.yaml | 3 +-- tests/conftest.py | 5 ++++- tests/unit/test_collector.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) 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 07cd468c15d..62191f99c56 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1031,7 +1031,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"}), {}, ),