Wrap long lines

This commit is contained in:
Christian Clauss 2023-10-03 09:01:40 +02:00
parent ff05e4224b
commit dcb9dc0369
3 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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):

View File

@ -625,7 +625,7 @@ _pkg1_requirement = Requirement("pkg1==1.0")
),
# Test with a provided hash value.
(
'<a href="/pkg1-1.0.tar.gz" data-core-metadata="sha256=aa113592bbe"></a>', # noqa: E501
'<a href="/pkg1-1.0.tar.gz" data-core-metadata="sha256=aa113592bbe"></a>',
MetadataFile({"sha256": "aa113592bbe"}),
{},
),