From 5cf01e685235593943942c5926194e76e0ac9d38 Mon Sep 17 00:00:00 2001 From: Luca Soldaini Date: Sun, 2 Apr 2023 22:49:17 -0700 Subject: [PATCH] style (#55) --- pyproject.toml | 1 - src/smashed/utils/io_utils.py | 9 ++------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 4f02b20..8a5be29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,7 +87,6 @@ requires = [ [project.optional-dependencies] dev = [ - "springs>=1.9.1", "black[jupyter]>=21.12b0", "isort>=5.8.0", "mypy>=0.971", diff --git a/src/smashed/utils/io_utils.py b/src/smashed/utils/io_utils.py index 2957729..07c3190 100644 --- a/src/smashed/utils/io_utils.py +++ b/src/smashed/utils/io_utils.py @@ -262,10 +262,7 @@ def open_file_for_read( assert client is not None, "Could not get S3 client" logger.info(f"Downloading {path} to a temporary file") - with NamedTemporaryFile( - delete=False, - dir=get_temp_dir(temp_dir) - ) as f: + with NamedTemporaryFile(delete=False, dir=get_temp_dir(temp_dir)) as f: client.download_fileobj(path.bucket, path.key.lstrip("/"), f) path = MultiPath.parse(f.name) remove = True @@ -328,9 +325,7 @@ def open_file_for_write( yield f else: with NamedTemporaryFile( - delete=False, - mode=mode, - dir=get_temp_dir(temp_dir) + delete=False, mode=mode, dir=get_temp_dir(temp_dir) ) as f: yield f local = MultiPath.parse(f.name)