Merge pull request #12312 from cclauss/patch-1

Wrap long lines
This commit is contained in:
Stéphane Bidoul 2023-10-03 19:13:31 +02:00 committed by GitHub
commit dfaac0a688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

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

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"}),
{},
),