Skip to content

Commit f182798

Browse files
committed
run nox blacken using ruff
1 parent e36558c commit f182798

17 files changed

Lines changed: 13 additions & 34 deletions

File tree

packages/google-resumable-media/google/_async_resumable_media/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
.. _pip: https://pip.pypa.io/
4343
"""
4444

45-
4645
from google.resumable_media.common import DataCorruption
4746
from google.resumable_media.common import InvalidResponse
4847
from google.resumable_media.common import PERMANENT_REDIRECT

packages/google-resumable-media/google/_async_resumable_media/_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class ChunkedDownload(DownloadBase):
236236
def __init__(self, media_url, chunk_size, stream, start=0, end=None, headers=None):
237237
if start < 0:
238238
raise ValueError(
239-
"On a chunked download the starting " "value cannot be negative."
239+
"On a chunked download the starting value cannot be negative."
240240
)
241241
super(ChunkedDownload, self).__init__(
242242
media_url, stream=stream, start=start, end=end, headers=headers

packages/google-resumable-media/google/_async_resumable_media/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def require_status_code(response, status_codes, get_status_code, callback=do_not
9797
"Request failed with status code",
9898
status_code,
9999
"Expected one of",
100-
*status_codes
100+
*status_codes,
101101
)
102102
return status_code
103103

packages/google-resumable-media/google/_async_resumable_media/requests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,7 @@ def SimpleUpload(*args, **kwargs):
662662
>>> json_response['name'] == blob_name
663663
True
664664
"""
665+
665666
from google._async_resumable_media.requests.download import ChunkedDownload
666667
from google._async_resumable_media.requests.download import Download
667668
from google._async_resumable_media.requests.upload import MultipartUpload

packages/google-resumable-media/google/_async_resumable_media/requests/_request_helpers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
This utilities are explicitly catered to ``requests``-like transports.
1818
"""
1919

20-
2120
import functools
2221

2322
from google._async_resumable_media import _helpers
@@ -114,7 +113,7 @@ async def http_request(
114113
data=None,
115114
headers=None,
116115
retry_strategy=_DEFAULT_RETRY_STRATEGY,
117-
**transport_kwargs
116+
**transport_kwargs,
118117
):
119118
"""Make an HTTP request.
120119

packages/google-resumable-media/google/_async_resumable_media/requests/download.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ class ChunkedDownload(_request_helpers.RequestsMixin, _download.ChunkedDownload)
311311
async def consume_next_chunk(
312312
self, transport, timeout=_request_helpers._DEFAULT_TIMEOUT
313313
):
314-
315314
"""
316315
Consume the next chunk of the resource to be downloaded.
317316

packages/google-resumable-media/google/_async_resumable_media/requests/upload.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
uploads that contain both metadata and a small file as payload.
1919
"""
2020

21-
2221
from google._async_resumable_media import _upload
2322
from google._async_resumable_media.requests import _request_helpers
2423

packages/google-resumable-media/google/resumable_media/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
.. _pip: https://pip.pypa.io/
4343
"""
4444

45-
4645
from google.resumable_media.common import DataCorruption
4746
from google.resumable_media.common import InvalidResponse
4847
from google.resumable_media.common import PERMANENT_REDIRECT

packages/google-resumable-media/google/resumable_media/_download.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
"""Virtual bases classes for downloading media from Google APIs."""
1616

17-
1817
import http.client
1918
import re
2019

@@ -243,7 +242,7 @@ class ChunkedDownload(DownloadBase):
243242
def __init__(self, media_url, chunk_size, stream, start=0, end=None, headers=None):
244243
if start < 0:
245244
raise ValueError(
246-
"On a chunked download the starting " "value cannot be negative."
245+
"On a chunked download the starting value cannot be negative."
247246
)
248247
super(ChunkedDownload, self).__init__(
249248
media_url, stream=stream, start=start, end=end, headers=headers

packages/google-resumable-media/google/resumable_media/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def require_status_code(response, status_codes, get_status_code, callback=do_not
110110
"Request failed with status code",
111111
status_code,
112112
"Expected one of",
113-
*status_codes
113+
*status_codes,
114114
)
115115
return status_code
116116

0 commit comments

Comments
 (0)