Skip to content

Commit 949b8a6

Browse files
committed
Fix ruff-format: add blank lines after local imports
1 parent 4b7e7bd commit 949b8a6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/datajoint/external.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def s3(self):
9090
)
9191
# For backward compatibility, return a legacy s3.Folder if needed
9292
from . import s3
93+
9394
if not hasattr(self, "_s3_legacy") or self._s3_legacy is None:
9495
self._s3_legacy = s3.Folder(**self.spec)
9596
return self._s3_legacy

src/datajoint/storage.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def put_file(self, local_path: str | Path, remote_path: str | PurePosixPath, met
139139
if self.protocol == "file":
140140
# For local filesystem, use safe copy with atomic rename
141141
from .utils import safe_copy
142+
142143
Path(full_path).parent.mkdir(parents=True, exist_ok=True)
143144
safe_copy(local_path, full_path, overwrite=True)
144145
else:
@@ -161,6 +162,7 @@ def get_file(self, remote_path: str | PurePosixPath, local_path: str | Path):
161162

162163
if self.protocol == "file":
163164
from .utils import safe_copy
165+
164166
safe_copy(full_path, local_path)
165167
else:
166168
self.fs.get_file(full_path, str(local_path))
@@ -178,6 +180,7 @@ def put_buffer(self, buffer: bytes, remote_path: str | PurePosixPath):
178180

179181
if self.protocol == "file":
180182
from .utils import safe_write
183+
181184
Path(full_path).parent.mkdir(parents=True, exist_ok=True)
182185
safe_write(full_path, buffer)
183186
else:

0 commit comments

Comments
 (0)