Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 3e985a9

Browse files
chore: run black
1 parent 27b6bcd commit 3e985a9

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

storage3/_async/file_api.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ async def get_public_url(self, path: str, options: TransformOptions = {}) -> str
8181
path
8282
file path, including the path and file name. For example `folder/image.png`.
8383
"""
84-
render_path = (
85-
"render/image" if options.get("transform") else "object"
86-
)
84+
render_path = "render/image" if options.get("transform") else "object"
8785
transformation_query = urllib.parse.urlencode(options)
8886
query_string = f"?{transformation_query}" if transformation_query else ""
8987
_path = self._get_final_path(path)

storage3/_sync/bucket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from httpx import HTTPError, Response
66

77
from ..types import RequestMethod
8-
from ..utils import SyncClient, StorageException
8+
from ..utils import StorageException, SyncClient
99
from .file_api import SyncBucket
1010

1111
__all__ = ["SyncStorageBucketAPI"]

storage3/_sync/file_api.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
RequestMethod,
1717
TransformOptions,
1818
)
19-
from ..utils import SyncClient, StorageException
19+
from ..utils import StorageException, SyncClient
2020

2121
__all__ = ["SyncBucket"]
2222

@@ -81,9 +81,7 @@ def get_public_url(self, path: str, options: TransformOptions = {}) -> str:
8181
path
8282
file path, including the path and file name. For example `folder/image.png`.
8383
"""
84-
render_path = (
85-
"render/image" if options.get("transform") else "object"
86-
)
84+
render_path = "render/image" if options.get("transform") else "object"
8785
transformation_query = urllib.parse.urlencode(options)
8886
query_string = f"?{transformation_query}" if transformation_query else ""
8987
_path = self._get_final_path(path)

tests/_sync/test_client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ def bucket(storage: SyncStorageClient, uuid_factory: Callable[[], str]) -> str:
7979

8080

8181
@pytest.fixture(scope="module")
82-
def public_bucket(
83-
storage: SyncStorageClient, uuid_factory: Callable[[], str]
84-
) -> str:
82+
def public_bucket(storage: SyncStorageClient, uuid_factory: Callable[[], str]) -> str:
8583
"""Creates a test public bucket which will be used in the whole storage tests run and deleted at the end"""
8684
bucket_id = uuid_factory()
8785

0 commit comments

Comments
 (0)